Revision: 7685 Author: xqt Date: 2009-11-23 14:57:45 +0000 (Mon, 23 Nov 2009)
Log Message: ----------- Use cmstartsortkey (Bugfix for #2902462)
Modified Paths: -------------- trunk/pywikipedia/catlib.py
Modified: trunk/pywikipedia/catlib.py =================================================================== --- trunk/pywikipedia/catlib.py 2009-11-23 14:01:26 UTC (rev 7684) +++ trunk/pywikipedia/catlib.py 2009-11-23 14:57:45 UTC (rev 7685) @@ -203,24 +203,24 @@ params['cmlimit'] = 500 else: params['cmlimit'] = wikipedia.config.special_page_limit - + if currentPageOffset: params['cmcontinue'] = currentPageOffset wikipedia.output('Getting [[%s]] list from %s...' % (self.title(), currentPageOffset[:-1])) # cmcontinue last key is '|' elif startFrom: - params['cmstart'] = startFrom + params['cmstartsortkey'] = startFrom wikipedia.output('Getting [[%s]] list starting at %s...' % (self.title(), startFrom)) else: wikipedia.output('Getting [[%s]]...' % self.title()) - + wikipedia.get_throttle() data = query.GetData(params, self.site()) if 'error' in data: raise RuntimeError("%s" % data['error']) count = 0 - + for memb in data['query']['categorymembers']: count += 1 # For MediaWiki versions where subcats look like articles
pywikipedia-svn@lists.wikimedia.org