Revision: 7140 Author: alexsh Date: 2009-08-10 19:21:56 +0000 (Mon, 10 Aug 2009)
Log Message: ----------- *catlib.py: add config lock. *wiktionary_family.py: update ns by update_namespaces.py
Modified Paths: -------------- trunk/pywikipedia/catlib.py trunk/pywikipedia/families/wiktionary_family.py
Modified: trunk/pywikipedia/catlib.py =================================================================== --- trunk/pywikipedia/catlib.py 2009-08-09 08:40:29 UTC (rev 7139) +++ trunk/pywikipedia/catlib.py 2009-08-10 19:21:56 UTC (rev 7140) @@ -179,7 +179,7 @@ This should not be used outside of this module. """ try: - if self.site().versionnumber() >= 11: + if wikipedia.config.use_api and self.site().versionnumber() >= 11: api_url = self.site().api_address() del api_url else: @@ -206,14 +206,14 @@
if currentPageOffset: params['cmcontinue'] = currentPageOffset - wikipedia.output('Getting [[%s]] list from %s by API...' + wikipedia.output('Getting [[%s]] list from %s...' % (self.title(), currentPageOffset[:-1])) # cmcontinue last key is '|' elif startFrom: params['cmstart'] = startFrom - wikipedia.output('Getting [[%s]] list starting at %s by API...' + wikipedia.output('Getting [[%s]] list starting at %s...' % (self.title(), startFrom)) else: - wikipedia.output('Getting [[%s]] by API...' % self.title()) + wikipedia.output('Getting [[%s]]...' % self.title())
wikipedia.get_throttle() data = query.GetData(params, self.site())
Modified: trunk/pywikipedia/families/wiktionary_family.py =================================================================== --- trunk/pywikipedia/families/wiktionary_family.py 2009-08-09 08:40:29 UTC (rev 7139) +++ trunk/pywikipedia/families/wiktionary_family.py 2009-08-10 19:21:56 UTC (rev 7140) @@ -300,7 +300,7 @@ self.namespaces[104] = { 'bs': u'Dodatak', 'cy': u'WiciSawrws', - 'de': u'WikiSaurus', + 'de': u'Thesaurus', 'en': u'Index', 'fr': u'Portail', 'pl': u'Portal', @@ -312,7 +312,7 @@ self.namespaces[105] = { 'bs': u'Razgovor o Dodatku', 'cy': u'Sgwrs WiciSawrws', - 'de': u'WikiSaurus Diskussion', + 'de': u'Thesaurus Diskussion', 'en': u'Index talk', 'fr': u'Discussion Portail', 'pl': u'Dyskusja portalu',