In #pywikipediabot today, Pyfisch pointed out that User.contributions and Page.getVersionHistory are returning the MediaWiki timestamp format (example: 20130427104527). I've gone ahead and modified both methods to return pywikibot.Timestamp formats, which are much easier to use. I've noted this in the README-conversion.txt file, since this is a breaking change from trunk.
I doubt these two are the only methods that needed changing, so I will try and convert everything else over soon. -- Legoktm
In function getVersionHistory, it should be "pywikibot.Timestamp.fromISOformat", not "pywikibot.Timestamp.fromtimestampformat"
On Sat, Apr 27, 2013 at 6:34 PM, legoktm legoktm.wikipedia@gmail.comwrote:
In #pywikipediabot today, Pyfisch pointed out that User.contributions and Page.getVersionHistory are returning the MediaWiki timestamp format (example: 20130427104527). I've gone ahead and modified both methods to return pywikibot.Timestamp formats, which are much easier to use. I've noted this in the README-conversion.txt file, since this is a breaking change from trunk.
I doubt these two are the only methods that needed changing, so I will try and convert everything else over soon. -- Legoktm
Pywikipedia-l mailing list Pywikipedia-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/pywikipedia-l
pywikipedia-l@lists.wikimedia.org