Revision: 6332 Author: russblau Date: 2009-02-06 14:31:29 +0000 (Fri, 06 Feb 2009)
Log Message: ----------- implement API change announced on mediawiki-api list
Modified Paths: -------------- branches/rewrite/pywikibot/site.py
Modified: branches/rewrite/pywikibot/site.py =================================================================== --- branches/rewrite/pywikibot/site.py 2009-02-06 14:30:59 UTC (rev 6331) +++ branches/rewrite/pywikibot/site.py 2009-02-06 14:31:29 UTC (rev 6332) @@ -1809,8 +1809,13 @@ elif namespaces is not None: rcgen.request["rcnamespace"] = str(namespaces) if pagelist: - rcgen.request["rctitles"] = u"|".join(p.title(withSection=False) - for p in pagelist) + if self.versionnumber() > 14: + pywikibot.output( + u"recentchanges: pagelist option is disabled", + level=pywikibot.ERROR) + else: + rcgen.request["rctitles"] = u"|".join(p.title(withSection=False) + for p in pagelist) if changetype: rcgen.request["rctype"] = changetype filters = {'minor': showMinor,
pywikipedia-l@lists.wikimedia.org