http://www.mediawiki.org/wiki/Special:Code/pywikipedia/10635
Revision: 10635 Author: xqt Date: 2012-11-01 05:08:35 +0000 (Thu, 01 Nov 2012) Log Message: ----------- bugfix for #3582353
Modified Paths: -------------- trunk/pywikipedia/interwiki.py
Modified: trunk/pywikipedia/interwiki.py =================================================================== --- trunk/pywikipedia/interwiki.py 2012-10-31 16:58:50 UTC (rev 10634) +++ trunk/pywikipedia/interwiki.py 2012-11-01 05:08:35 UTC (rev 10635) @@ -1663,7 +1663,7 @@ # edit restriction for some templates on zh-wiki where interlanguage keys are included # by /doc subpage smallWikiAllowed = not (page.site.sitename() == 'wikipedia:zh' and - page.site.namespace() == 10 and + page.namespace() == 10 and u'Country data' in page.title(withNamespace=False)) # edit restriction on is-wiki # http://is.wikipedia.org/wiki/Wikipediaspjall:V%C3%A9lmenni
pywikipedia-svn@lists.wikimedia.org