Revision: 7615 Author: alexsh Date: 2009-11-09 13:43:21 +0000 (Mon, 09 Nov 2009)
Log Message: ----------- add cross-project data
Modified Paths: -------------- trunk/pywikipedia/families/commons_family.py trunk/pywikipedia/families/incubator_family.py trunk/pywikipedia/families/mediawiki_family.py trunk/pywikipedia/families/meta_family.py trunk/pywikipedia/families/species_family.py trunk/pywikipedia/families/test_family.py trunk/pywikipedia/families/wikibooks_family.py trunk/pywikipedia/families/wikinews_family.py trunk/pywikipedia/families/wikipedia_family.py trunk/pywikipedia/families/wikiquote_family.py trunk/pywikipedia/families/wikisource_family.py trunk/pywikipedia/families/wikiversity_family.py trunk/pywikipedia/families/wiktionary_family.py
Modified: trunk/pywikipedia/families/commons_family.py =================================================================== --- trunk/pywikipedia/families/commons_family.py 2009-11-09 12:52:52 UTC (rev 7614) +++ trunk/pywikipedia/families/commons_family.py 2009-11-09 13:43:21 UTC (rev 7615) @@ -52,7 +52,12 @@ self.disambcatname = { 'commons': u'Disambiguation' } + self.cross_projects = [ + 'wikipedia', 'wiktionary', 'wikibooks', 'wikiquote', 'wikisource', 'wikinews', 'wikiversity', + 'meta', 'mediawiki', 'test', 'incubator', 'species', + ]
+ def version(self, code): return '1.16alpha-wmf'
Modified: trunk/pywikipedia/families/incubator_family.py =================================================================== --- trunk/pywikipedia/families/incubator_family.py 2009-11-09 12:52:52 UTC (rev 7614) +++ trunk/pywikipedia/families/incubator_family.py 2009-11-09 13:43:21 UTC (rev 7615) @@ -28,6 +28,10 @@ self.namespaces[101] = { '_default': u'Lost talk', } + self.cross_projects = [ + 'wikipedia', 'wiktionary', 'wikibooks', 'wikiquote', 'wikisource', 'wikinews', 'wikiversity', + 'meta', 'mediawiki', 'test', 'commons', 'species', + ]
def version(self, code): return '1.16alpha-wmf'
Modified: trunk/pywikipedia/families/mediawiki_family.py =================================================================== --- trunk/pywikipedia/families/mediawiki_family.py 2009-11-09 12:52:52 UTC (rev 7614) +++ trunk/pywikipedia/families/mediawiki_family.py 2009-11-09 13:43:21 UTC (rev 7615) @@ -36,7 +36,12 @@ self.namespaces[103] = { '_default': u'Extension talk', } + self.cross_projects = [ + 'wikipedia', 'wiktionary', 'wikibooks', 'wikiquote', 'wikisource', + 'wikinews', 'wikiversity', 'meta', 'test', 'incubator', 'commons', 'species', + ]
+ def version(self, code): return '1.16alpha-wmf'
Modified: trunk/pywikipedia/families/meta_family.py =================================================================== --- trunk/pywikipedia/families/meta_family.py 2009-11-09 12:52:52 UTC (rev 7614) +++ trunk/pywikipedia/families/meta_family.py 2009-11-09 13:43:21 UTC (rev 7615) @@ -128,7 +128,12 @@
self.interwiki_forward = 'wikipedia' self.cross_allowed = ['meta',] + self.cross_projects = [ + 'wikipedia', 'wiktionary', 'wikibooks', 'wikiquote', 'wikisource', 'wikinews', 'wikiversity', + 'mediawiki', 'test', 'incubator', 'commons', 'species', + ]
+ def version(self,code): return '1.16alpha-wmf'
Modified: trunk/pywikipedia/families/species_family.py =================================================================== --- trunk/pywikipedia/families/species_family.py 2009-11-09 12:52:52 UTC (rev 7614) +++ trunk/pywikipedia/families/species_family.py 2009-11-09 13:43:21 UTC (rev 7615) @@ -24,6 +24,10 @@ }
self.interwiki_forward = 'wikipedia' + self.cross_projects = [ + 'wikipedia', 'wiktionary', 'wikibooks', 'wikiquote', 'wikisource', 'wikinews', 'wikiversity', + 'meta', 'mediawiki', 'test', 'incubator', 'commons', + ]
def version(self,code): return '1.16alpha-wmf'
Modified: trunk/pywikipedia/families/test_family.py =================================================================== --- trunk/pywikipedia/families/test_family.py 2009-11-09 12:52:52 UTC (rev 7614) +++ trunk/pywikipedia/families/test_family.py 2009-11-09 13:43:21 UTC (rev 7615) @@ -125,6 +125,10 @@ self.namespaces[133] = { '_default': u'نقاش المساعدة', } + self.cross_projects = [ + 'wikipedia', 'wiktionary', 'wikibooks', 'wikiquote', 'wikisource', 'wikinews', 'wikiversity', + 'meta', 'mediawiki', 'incubator', 'commons', 'species', + ]
def version(self, code): return '1.16alpha-wmf'
Modified: trunk/pywikipedia/families/wikibooks_family.py =================================================================== --- trunk/pywikipedia/families/wikibooks_family.py 2009-11-09 12:52:52 UTC (rev 7614) +++ trunk/pywikipedia/families/wikibooks_family.py 2009-11-09 13:43:21 UTC (rev 7615) @@ -346,6 +346,11 @@ } # Global bot allowed languages on http://meta.wikimedia.org/wiki/Bot_policy/Implementation#Current_implementat... self.cross_allowed = ['fa', 'fy', 'it', 'ru', 'simple', 'zh'] + # CentralAuth cross avaliable projects. + self.cross_projects = [ + 'wikipedia', 'wiktionary', 'wikiquote', 'wikiquote', 'wikinews', 'wikiversity', + 'meta', 'mediawiki', 'test', 'incubator', 'commons', 'species' + ]
def version(self, code): return '1.16alpha-wmf'
Modified: trunk/pywikipedia/families/wikinews_family.py =================================================================== --- trunk/pywikipedia/families/wikinews_family.py 2009-11-09 12:52:52 UTC (rev 7614) +++ trunk/pywikipedia/families/wikinews_family.py 2009-11-09 13:43:21 UTC (rev 7615) @@ -190,6 +190,11 @@
# Global bot allowed languages on http://meta.wikimedia.org/wiki/Bot_policy/Implementation#Current_implementat... self.cross_allowed = ['cs', 'hu',] + # 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'
Modified: trunk/pywikipedia/families/wikipedia_family.py =================================================================== --- trunk/pywikipedia/families/wikipedia_family.py 2009-11-09 12:52:52 UTC (rev 7614) +++ trunk/pywikipedia/families/wikipedia_family.py 2009-11-09 13:43:21 UTC (rev 7615) @@ -881,6 +881,11 @@ 'zh-min-nan': u'Khu-pia̍t-ia̍h', }
+ # 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 = [ 'ab', 'ace', 'af', 'ak', 'als', 'am', 'ang', 'arc', 'arz', 'as', 'ast', 'av', 'ay', 'az',
Modified: trunk/pywikipedia/families/wikiquote_family.py =================================================================== --- trunk/pywikipedia/families/wikiquote_family.py 2009-11-09 12:52:52 UTC (rev 7614) +++ trunk/pywikipedia/families/wikiquote_family.py 2009-11-09 13:43:21 UTC (rev 7615) @@ -205,6 +205,11 @@ 'af','am','ang','ar','ast','az','ca','da','fa','it', 'ka','ko','la','nn','no','ro','simple','sv','vi','zh' ] + # CentralAuth cross avaliable projects. + self.cross_projects = [ + 'wikipedia', 'wiktionary', 'wikibooks', 'wikisource', 'wikinews', 'wikiversity', + 'meta', 'mediawiki', 'test', 'incubator', 'commons', 'species' + ] # 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
Modified: trunk/pywikipedia/families/wikisource_family.py =================================================================== --- trunk/pywikipedia/families/wikisource_family.py 2009-11-09 12:52:52 UTC (rev 7614) +++ trunk/pywikipedia/families/wikisource_family.py 2009-11-09 13:43:21 UTC (rev 7615) @@ -362,6 +362,11 @@ self.cross_allowed = [ 'el','fa','it','ko','no','zh' ] + # CentralAuth cross avaliable projects. + self.cross_projects = [ + 'wikipedia', 'wiktionary', 'wikibooks', 'wikiquote', 'wikinews', 'wikiversity', + 'meta', 'mediawiki', 'test', 'incubator', 'commons', 'species' + ]
def version(self, code): return '1.16alpha-wmf'
Modified: trunk/pywikipedia/families/wikiversity_family.py =================================================================== --- trunk/pywikipedia/families/wikiversity_family.py 2009-11-09 12:52:52 UTC (rev 7614) +++ trunk/pywikipedia/families/wikiversity_family.py 2009-11-09 13:43:21 UTC (rev 7615) @@ -115,6 +115,11 @@ self.cross_allowed = [ 'ja', ] + # CentralAuth cross avaliable projects. + self.cross_projects = [ + 'wikipedia', 'wiktionary', 'wikibooks', 'wikiquote', 'wikisource', 'wikinews', + 'meta', 'mediawiki', 'test', 'incubator', 'commons', 'species' + ]
def version(self,code): return '1.16alpha-wmf'
Modified: trunk/pywikipedia/families/wiktionary_family.py =================================================================== --- trunk/pywikipedia/families/wiktionary_family.py 2009-11-09 12:52:52 UTC (rev 7614) +++ trunk/pywikipedia/families/wiktionary_family.py 2009-11-09 13:43:21 UTC (rev 7615) @@ -383,6 +383,11 @@ 'ia', 'ie', 'ik', 'jv', 'ka', 'li', 'lt', 'mk', 'nl', 'no', 'pt', 'sk', 'tg', 'th', 'ti', 'ts', 'ug', 'uk', 'vo', 'za', 'zh-min-nan', 'zh', 'zu', ] + # CentralAuth cross avaliable projects. + self.cross_projects = [ + 'wikipedia', 'wikibooks', 'wikiquote', 'wikisource', 'wikinews', 'wikiversity', + 'meta', 'mediawiki', 'test', 'incubator', 'commons', 'species' + ] self.obsolete = { 'aa': None, # http://meta.wikimedia.org/wiki/Proposals_for_closing_projects/Closure_of_Afa... 'ab': None, # http://meta.wikimedia.org/wiki/Proposals_for_closing_projects/Closure_of_Abk...