http://www.mediawiki.org/wiki/Special:Code/pywikipedia/9996
Revision: 9996 Author: xqt Date: 2012-03-10 18:17:15 +0000 (Sat, 10 Mar 2012) Log Message: ----------- Global bot for en-wikinews (but without global bot policy)
Modified Paths: -------------- trunk/pywikipedia/families/wikinews_family.py
Modified: trunk/pywikipedia/families/wikinews_family.py =================================================================== --- trunk/pywikipedia/families/wikinews_family.py 2012-03-10 18:14:34 UTC (rev 9995) +++ trunk/pywikipedia/families/wikinews_family.py 2012-03-10 18:17:15 UTC (rev 9996) @@ -237,16 +237,15 @@ 'ja': u'短信‐ノート', }
+ # CentralAuth cross avaliable projects. + self.cross_projects = [ + 'wiktionary', 'wikibooks', 'wikiquote', 'wikisource', 'wikinews', + 'wikiversity', 'meta', 'mediawiki', 'test', 'incubator', 'commons', + 'species', + ]
- 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' - } + # 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, @@ -263,15 +262,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'