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)
pywikipedia-l@lists.wikimedia.org