http://www.mediawiki.org/wiki/Special:Code/pywikipedia/11480
Revision: 11480 Author: xqt Date: 2013-04-28 12:50:20 +0000 (Sun, 28 Apr 2013) Log Message: ----------- api call is deactivated for getall() since r8036 because some pages where missing. Remove the DEBUG logging switch. We would need a development switch here which was removed with r11397 :( Change to {{PLURAL:}} support
Modified Paths: -------------- trunk/pywikipedia/wikipedia.py
Modified: trunk/pywikipedia/wikipedia.py =================================================================== --- trunk/pywikipedia/wikipedia.py 2013-04-28 12:30:21 UTC (rev 11479) +++ trunk/pywikipedia/wikipedia.py 2013-04-28 12:50:20 UTC (rev 11480) @@ -5445,11 +5445,13 @@ """ # TODO: why isn't this a Site method? pages = list(pages) # if pages is an iterator, we need to make it a list - output(u'Getting %d page%s %sfrom %s...' - %(len(pages), - (u'', u's')[len(pages) != 1], - (u'', u'via API ')[site.has_api() and logger.isEnabledFor(DEBUG)], - site)) + output(pywikibot.translate('en', + u'Getting %(count)d page{{PLURAL:count||s}} %(API)sfrom %(site)s...', + {'count': len(pages), + # API is deactivated since r8036 because some pages are missing + 'API': (u'', + u'via API ')[site.has_api() and False], + 'site': site})) limit = config.special_page_limit / 4 # default is 500/4, but It might have good point for server. if len(pages) > limit: # separate export pages for bulk-retrieve
pywikipedia-svn@lists.wikimedia.org