Hi,
Currently, I have to do work with old revisions from articles. I found that most method in Page are focused on working with the latest revision. So it'd very convenient to add a new Revision class where methods like section(), isDisambig(), userName(), editTime(), etc., live. Then Page could properly get (and cache) any revision. These methods in page could be shortcuts for the actual methods in Revision of the latest revision.
What do you think?
Also, am I missing something and there's actually a good way of working on arbitrary revisions that I missed?
Thanks,
On Thu, Mar 4, 2010 at 5:35 PM, Santiago M. Mola cooldwind@gmail.com wrote:
Currently, I have to do work with old revisions from articles. I found that most method in Page are focused on working with the latest revision. So it'd very convenient to add a new Revision class where methods like section(), isDisambig(), userName(), editTime(), etc., live. Then Page could properly get (and cache) any revision. These methods in page could be shortcuts for the actual methods in Revision of the latest revision.
Nevermind. I switched to the rewrite branch and looks like it already suits my needs ;-)
Best regards,
pywikipedia-l@lists.wikimedia.org