[Pywikipedia-l] SVN: [5362] branches/rewrite/pywikibot/site.py
nicdumz at svn.wikimedia.org
nicdumz at svn.wikimedia.org
Tue May 13 14:40:48 UTC 2008
Revision: 5362
Author: nicdumz
Date: 2008-05-13 14:40:48 +0000 (Tue, 13 May 2008)
Log Message:
-----------
Fixing previous commit:
Setting rvgen.limit = -1 in preloadpages
(Error was pywikibot.data.api.APIError: rvmultpages: titles, pageids or a generator was used to supply multiple pages, but the limit, startid, endid, dirNewer, user, excludeuser, start and end parameters may only be used on a single page. )
Modified Paths:
--------------
branches/rewrite/pywikibot/site.py
Modified: branches/rewrite/pywikibot/site.py
===================================================================
--- branches/rewrite/pywikibot/site.py 2008-05-12 20:37:06 UTC (rev 5361)
+++ branches/rewrite/pywikibot/site.py 2008-05-13 14:40:48 UTC (rev 5362)
@@ -604,6 +604,7 @@
and p._pageid > 0]
cache = dict((p.title(withSection=False), p) for p in sublist)
rvgen = api.PropertyGenerator("revisions|info", site=self)
+ rvgen.limit = -1
if len(pageids) == len(sublist):
# only use pageids if all pages have them
rvgen.request["pageids"] = "|".join(pageids)
More information about the Pywikipedia-l
mailing list