http://www.mediawiki.org/wiki/Special:Code/pywikipedia/9999
Revision: 9999 Author: xqt Date: 2012-03-10 18:37:59 +0000 (Sat, 10 Mar 2012) Log Message: ----------- update wikinews family file from trunk r9996
Modified Paths: -------------- branches/rewrite/pywikibot/families/wikinews_family.py
Modified: branches/rewrite/pywikibot/families/wikinews_family.py =================================================================== --- branches/rewrite/pywikibot/families/wikinews_family.py 2012-03-10 18:35:37 UTC (rev 9998) +++ branches/rewrite/pywikibot/families/wikinews_family.py 2012-03-10 18:37:59 UTC (rev 9999) @@ -29,6 +29,16 @@ 'zh-cn': 'zh' }
+ # CentralAuth cross avaliable projects. + self.cross_projects = [ + 'wiktionary', 'wikibooks', 'wikiquote', 'wikisource', 'wikinews', + 'wikiversity', 'meta', 'mediawiki', 'test', 'incubator', 'commons', + 'species', + ] + + # Global bot allowed languages on http://meta.wikimedia.org/wiki/Bot_policy/Implementation#Current_implementat... + self.cross_allowed = ['ca', 'cs', 'en', 'fa',] + # Which languages have a special order for putting interlanguage links, # and what order is it? If a language is not in interwiki_putfirst, # alphabetical order on language code is used. For languages that are in @@ -44,15 +54,16 @@ 'pl': self.alphabetic, }
- # Global bot allowed languages on http://meta.wikimedia.org/wiki/Bot_policy/Implementation#Current_implementat... - self.cross_allowed = ['ca', 'cs', 'fa',] + self.obsolete = { + 'hu': None, # https://bugzilla.wikimedia.org/show_bug.cgi?id=28342 + 'jp': 'ja', + 'nb': 'no', + 'nl': None, # https://bugzilla.wikimedia.org/show_bug.cgi?id=20325 + 'th': None, # https://bugzilla.wikimedia.org/show_bug.cgi?id=28341 + 'zh-tw': 'zh', + 'zh-cn': 'zh' + }
- # CentralAuth cross avaliable projects. - self.cross_projects = [ - 'wikipedia', 'wiktionary', 'wikibooks', 'wikiquote', 'wikisource', 'wikiversity', - 'meta', 'mediawiki', 'test', 'incubator', 'commons', 'species' - ] - def code2encoding(self, code): return 'utf-8'