Revision: 7137 Author: alexsh Date: 2009-08-09 06:00:26 +0000 (Sun, 09 Aug 2009)
Log Message: ----------- *Category()._parseCategory():typo cmlimit
Modified Paths: -------------- trunk/pywikipedia/catlib.py
Modified: trunk/pywikipedia/catlib.py =================================================================== --- trunk/pywikipedia/catlib.py 2009-08-09 05:18:21 UTC (rev 7136) +++ trunk/pywikipedia/catlib.py 2009-08-09 06:00:26 UTC (rev 7137) @@ -196,9 +196,14 @@ 'list': 'categorymembers', 'cmtitle': self.title(), 'cmprop': 'title',#|ids|sortkey|timestamp', - #'cmlimit': config.special_page_limit, #'': '', } + if config.special_page_limit > 500: + params['cmlimit'] = 500 + else: + params['cmlimit'] = config.special_page_limit + + if currentPageOffset: params['cmcontinue'] = currentPageOffset wikipedia.output('Getting [[%s]] list from %s by API...'
pywikipedia-svn@lists.wikimedia.org