Skip Menu |

This queue is for tickets about the MediaWiki-DumpFile CPAN distribution.

Report information
The Basics
Id: 55955
Status: open
Priority: 0/
Queue: MediaWiki-DumpFile

People
Owner: Nobody in particular
Requestors: amir.aharoni [...] gmail.com
Cc:
AdminCc:

Bug Information
Severity: Wishlist
Broken in: 0.1.1
Fixed in: (no value)



Subject: MediaWiki::DumpFile::Pages::Page should probably have a namespace() method
Parse::MediaWikiDump::page had a namespace() method, which was useful. It should probably be implemented in MediaWiki::DumpFile::Pages::Page, too. In Parse::MediaWikiDump each page received a list of namespaces in the constructor. Maybe it would be more flexible to simply give it a reference to the whole dump in the constructor and then call namespaces() on the dump ref.
Leaving off the namespace() method was a conscious decision on my part. Most of the bugs I encountered over the life of maintaining Parse::MediaWikiDump were related to application layer stuff in MediaWiki (exactly such as the namespace method in fact). I've decided to leave application layer stuff out of the MediaWiki::DumpFile API and leave that to another module that understands MediaWiki internals. Tyler
From: amir.aharoni [...] gmail.com
On Fri Mar 26 10:46:47 2010, TRIDDLE wrote: Show quoted text
> I've decided to leave > application layer stuff out of the MediaWiki::DumpFile API and leave > that to another module that > understands MediaWiki internals.
No problem - I can code this myself for my needs, but if there is such a module, could you add a link to it in the POD? Thanks in advance.
Subject: Re: [rt.cpan.org #55955] MediaWiki::DumpFile::Pages::Page should probably have a namespace() method
Date: Fri, 26 Mar 2010 08:05:58 -0700
To: bug-MediaWiki-DumpFile [...] rt.cpan.org
From: Tyler Riddle <triddle [...] cpan.org>
On Fri, Mar 26, 2010 at 7:54 AM, Amir E. Aharoni via RT <bug-MediaWiki-DumpFile@rt.cpan.org> wrote: Show quoted text
>       Queue: MediaWiki-DumpFile >  Ticket <URL: https://rt.cpan.org/Ticket/Display.html?id=55955 > > > On Fri Mar 26 10:46:47 2010, TRIDDLE wrote:
>> I've decided to leave >> application layer stuff out of the MediaWiki::DumpFile API and leave >> that to another module that >> understands MediaWiki internals.
> > No problem - I can code this myself for my needs, but if there is such a > module, could you add a link to it in the POD? Thanks in advance. >
If I ever get the time I'll create a MediaWiki::DumpFile::Engine class that does this kind of thing and more (like category relationships) by wrapping ::Pages and ::SQL - I'll leave this ticket open to gather features people want to see in it and so I remember to do it. Feel free to add feature requests if you think of any. Tyler -- If you wish to make an apple pie from scratch you must first invent the universe. -- Carl Sagan