http://www.mediawiki.org/wiki/Special:Code/pywikipedia/10647
Revision: 10647
Author: russblau
Date: 2012-11-01 20:25:15 +0000 (Thu, 01 Nov 2012)
Log Message:
-----------
Fix for bug 3569058: total-parameter for Page.getVersionHistory is incorrect
This is a hack that resolves the issue for this particular method call, but the underlying
problem is in pywikibot.data.api.PropertyGenerator; it counts the number of pages received
from the server, not the number of revisions. This underlying bug has not yet been fixed.
Modified Paths:
--------------
branches/rewrite/pywikibot/site.py
Modified: branches/rewrite/pywikibot/site.py
===================================================================
--- branches/rewrite/pywikibot/site.py 2012-11-01 16:26:54 UTC (rev 10646)
+++ branches/rewrite/pywikibot/site.py 2012-11-01 20:25:15 UTC (rev 10647)
@@ -1687,6 +1687,7 @@
else:
page = Page(self, pagedata['title'])
api.update_page(page, pagedata)
+ break
def pageinterwiki(self, page):
# No such function in the API (this method isn't called anywhere)