Revision: 7686 Author: russblau Date: 2009-11-23 16:00:39 +0000 (Mon, 23 Nov 2009)
Log Message: ----------- Update family files from trunk.
Modified Paths: -------------- branches/rewrite/pywikibot/families/commons_family.py branches/rewrite/pywikibot/families/meta_family.py branches/rewrite/pywikibot/families/species_family.py branches/rewrite/pywikibot/families/wikibooks_family.py branches/rewrite/pywikibot/families/wikinews_family.py branches/rewrite/pywikibot/families/wikipedia_family.py branches/rewrite/pywikibot/families/wikiquote_family.py branches/rewrite/pywikibot/families/wikisource_family.py branches/rewrite/pywikibot/families/wiktionary_family.py branches/rewrite/pywikibot/family.py
Added Paths: ----------- branches/rewrite/pywikibot/families/lockwiki_family.py
Property Changed: ---------------- branches/rewrite/pywikibot/families/ branches/rewrite/pywikibot/family.py
Property changes on: branches/rewrite/pywikibot/families ___________________________________________________________________ Modified: svn:mergeinfo - /trunk/pywikipedia/families:5896-6197,6212-7548 + /trunk/pywikipedia/families:5896-6197,6212-7685
Modified: branches/rewrite/pywikibot/families/commons_family.py =================================================================== --- branches/rewrite/pywikibot/families/commons_family.py 2009-11-23 14:57:45 UTC (rev 7685) +++ branches/rewrite/pywikibot/families/commons_family.py 2009-11-23 16:00:39 UTC (rev 7686) @@ -28,16 +28,21 @@ u'Catredir', u'Redirect category'), } - + self.disambiguationTemplates = { 'commons': [u'Disambig', u'Disambiguation', u'Razločitev', u'Begriffsklärung'] } - + 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'
Copied: branches/rewrite/pywikibot/families/lockwiki_family.py (from rev 7685, trunk/pywikipedia/families/lockwiki_family.py) =================================================================== --- branches/rewrite/pywikibot/families/lockwiki_family.py (rev 0) +++ branches/rewrite/pywikibot/families/lockwiki_family.py 2009-11-23 16:00:39 UTC (rev 7686) @@ -0,0 +1,32 @@ +# -*- coding: utf-8 -*- + +__version__ = '$Id$' + +import family + +# The locksmithwiki family + +class Family(family.Family): + def __init__(self): + family.Family.__init__(self) + self.name = 'lockwiki' + self.langs = { + 'en': 'www.locksmithwiki.com', + } + self.namespaces[4] = { + '_default': [u'Locksmith Wiki Knowledge Base', + self.namespaces[4]['_default']], # REQUIRED + } + self.namespaces[4] = { + '_default': [u'Locksmith Wiki Knowledge Base talk', + self.namespaces[5]['_default']], # REQUIRED + } + + def scriptpath(self, code): + return '/lockwiki' + + def version(self, code): + return '1.15.1' + + def nicepath(self, code): + return "%s/" % self.path(self, code)
Modified: branches/rewrite/pywikibot/families/meta_family.py =================================================================== --- branches/rewrite/pywikibot/families/meta_family.py 2009-11-23 14:57:45 UTC (rev 7685) +++ branches/rewrite/pywikibot/families/meta_family.py 2009-11-23 16:00:39 UTC (rev 7686) @@ -15,6 +15,10 @@ } 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: branches/rewrite/pywikibot/families/species_family.py =================================================================== --- branches/rewrite/pywikibot/families/species_family.py 2009-11-23 14:57:45 UTC (rev 7685) +++ branches/rewrite/pywikibot/families/species_family.py 2009-11-23 16:00:39 UTC (rev 7686) @@ -14,6 +14,10 @@ 'species': 'species.wikimedia.org', } 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: branches/rewrite/pywikibot/families/wikibooks_family.py =================================================================== --- branches/rewrite/pywikibot/families/wikibooks_family.py 2009-11-23 14:57:45 UTC (rev 7685) +++ branches/rewrite/pywikibot/families/wikibooks_family.py 2009-11-23 16:00:39 UTC (rev 7686) @@ -11,15 +11,15 @@ self.name = 'wikibooks'
self.languages_by_size = [ - 'en', 'de', 'fr', 'zh', 'no', 'hu', 'pt', 'ja', 'es', 'it', - 'nl', 'pl', 'sq', 'he', 'fi', 'vi', 'ru', 'cs', 'hr', 'da', - 'sv', 'mk', 'th', 'tr', 'sr', 'fa', 'tl', 'ca', 'id', 'is', - 'ta', 'ar', 'ko', 'eo', 'ka', 'simple', 'bg', 'gl', 'lt', 'ro', - 'sk', 'la', 'el', 'ia', 'ang', 'sl', 'et', 'mr', 'cv', 'ur', - 'oc', 'ml', 'ms', 'uk', 'eu', 'fy', 'ie', 'hi', 'tg', 'bn', - 'hy', 'af', 'az', 'te', 'pa', 'bs', 'ky', 'be', 'sa', 'zh-min-nan', - 'ast', 'cy', 'tt', 'mg', 'si', 'ku', 'co', 'tk', 'sw', 'ne', - 'als', 'su', 'uz', 'vo', 'na', 'kn', 'mn', 'kk', 'za', 'nds', + 'en', 'de', 'fr', 'hu', 'pt', 'ja', 'es', 'pl', 'nl', 'it', + 'he', 'sq', 'fi', 'vi', 'ru', 'cs', 'hr', 'zh', 'sv', 'da', + 'mk', 'ca', 'tr', 'th', 'tl', 'sr', 'fa', 'id', 'is', 'ar', + 'ta', 'no', 'ka', 'simple', 'ko', 'eo', 'gl', 'bg', 'lt', 'ro', + 'sk', 'el', 'la', 'ia', 'ang', 'sl', 'et', 'cv', 'mr', 'ur', + 'oc', 'ml', 'ms', 'uk', 'eu', 'fy', 'hi', 'ie', 'bn', 'tg', + 'af', 'hy', 'te', 'pa', 'bs', 'ky', 'az', 'be', 'sa', 'zh-min-nan', + 'ast', 'tt', 'cy', 'mg', 'si', 'ku', 'co', 'sw', 'tk', 'ne', + 'als', 'su', 'vo', 'uz', 'na', 'kn', 'kk', 'mn', 'nds', 'za', 'zu', 'my', ]
@@ -93,7 +93,12 @@ 'simple': alphabetic } # Global bot allowed languages on http://meta.wikimedia.org/wiki/Bot_policy/Implementation#Current_implementat... - self.cross_allowed = ['fa', 'fy', 'it', 'ru', 'simple', 'zh'] + self.cross_allowed = ['fa', 'fy', 'it', 'nl', '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: branches/rewrite/pywikibot/families/wikinews_family.py =================================================================== --- branches/rewrite/pywikibot/families/wikinews_family.py 2009-11-23 14:57:45 UTC (rev 7685) +++ branches/rewrite/pywikibot/families/wikinews_family.py 2009-11-23 16:00:39 UTC (rev 7686) @@ -11,9 +11,9 @@ self.name = 'wikinews'
self.languages_by_size = [ - 'en', 'sr', 'pl', 'it', 'de', 'fr', 'pt', 'es', 'zh', 'sv', - 'ja', 'ru', 'nl', 'he', 'fi', 'ar', 'sd', 'cs', 'no', 'uk', - 'hu', 'ca', 'ro', 'th', 'bs', 'bg', 'ta', 'tr' + 'sr', 'en', 'pl', 'de', 'it', 'fr', 'pt', 'es', 'zh', 'ja', + 'sv', 'ru', 'nl', 'he', 'fi', 'ar', 'cs', 'sd', 'no', 'hu', + 'uk', 'ca', 'ro', 'ta', 'tr', 'bg', 'th', 'bs', ]
for lang in self.languages_by_size: @@ -42,6 +42,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: branches/rewrite/pywikibot/families/wikipedia_family.py =================================================================== --- branches/rewrite/pywikibot/families/wikipedia_family.py 2009-11-23 14:57:45 UTC (rev 7685) +++ branches/rewrite/pywikibot/families/wikipedia_family.py 2009-11-23 16:00:39 UTC (rev 7686) @@ -12,31 +12,31 @@
self.languages_by_size = [ 'en', 'de', 'fr', 'pl', 'ja', 'it', 'nl', 'es', 'pt', 'ru', - 'sv', 'zh', 'no', 'fi', 'ca', 'uk', 'hu', 'tr', 'cs', 'ro', - 'vo', 'eo', 'da', 'sk', 'id', 'ko', 'ar', 'vi', 'he', 'lt', - 'sr', 'sl', 'bg', 'et', 'fa', 'hr', 'simple', 'new', 'ht', 'nn', - 'gl', 'th', 'ms', 'el', 'te', 'eu', 'ceb', 'hi', 'mk', 'ka', - 'la', 'br', 'bs', 'lb', 'is', 'az', 'cy', 'sq', 'mr', 'sh', - 'bpy', 'lv', 'tl', 'pms', 'be-x-old', 'jv', 'bn', 'oc', 'ta', 'io', - 'be', 'an', 'scn', 'nds', 'su', 'nap', 'ku', 'sw', 'af', 'fy', - 'ast', 'zh-yue', 'bat-smg', 'wa', 'war', 'ur', 'qu', 'ml', 'ksh', 'cv', - 'tg', 'ga', 'vec', 'roa-tara', 'gu', 'gd', 'uz', 'pam', 'kn', 'yi', - 'mi', 'lmo', 'yo', 'zh-min-nan', 'nah', 'glk', 'co', 'hsb', 'roa-rup', 'kk', - 'als', 'ia', 'li', 'hy', 'sah', 'bcl', 'gan', 'tt', 'tk', 'sa', - 'nds-nl', 'wuu', 'os', 'fo', 'vls', 'arz', 'fiu-vro', 'nrm', 'am', 'pag', - 'rm', 'map-bms', 'dv', 'mn', 'gv', 'se', 'diq', 'fur', 'ne', 'sco', - 'bar', 'lij', 'nov', 'bh', 'mt', 'ilo', 'pi', 'mzn', 'zh-classical', 'csb', - 'ug', 'km', 'frp', 'lad', 'si', 'kw', 'ang', 'sc', 'pdc', 'haw', - 'mg', 'to', 'kv', 'my', 'szl', 'pa', 'ps', 'myv', 'ie', 'gn', - 'hif', 'ln', 'stq', 'jbo', 'wo', 'arc', 'crh', 'tpi', 'ty', 'ext', - 'cbk-zam', 'ky', 'hak', 'eml', 'zea', 'srn', 'ay', 'pap', 'so', 'kg', - 'ig', 'or', 'kab', 'lo', 'udm', 'rmy', 'ba', 'dsb', 'ce', 'sm', - 'av', 'nv', 'cu', 'ks', 'tet', 'got', 'kaa', 'bo', 'sd', 'mdf', - 'iu', 'na', 'bm', 'as', 'cdo', 'kl', 'pnt', 'chr', 'ee', 'om', - 'pih', 'ab', 'zu', 'ti', 'ts', 'ss', 'za', 'bi', 'ha', 'cr', - 'dz', 'xal', 've', 'ch', 'xh', 'tn', 'bug', 'ik', 'bxr', 'rw', - 'st', 'tw', 'chy', 'ak', 'fj', 'ny', 'ff', 'sn', 'sg', 'lbe', - 'lg', 'rn', 'ki', 'tum', 'ng', 'mhr', 'ckb', 'pnb', 'mwl', 'ace' + 'sv', 'zh', 'no', 'fi', 'ca', 'uk', 'hu', 'cs', 'tr', 'ro', + 'eo', 'ko', 'da', 'vo', 'id', 'sk', 'ar', 'vi', 'sr', 'he', + 'lt', 'fa', 'bg', 'sl', 'hr', 'et', 'simple', 'new', 'ms', 'th', + 'gl', 'nn', 'hi', 'ht', 'eu', 'el', 'te', 'ceb', 'mk', 'ka', + 'la', 'br', 'az', 'bs', 'lb', 'is', 'sh', 'mr', 'cy', 'sq', + 'lv', 'tl', 'bpy', 'be-x-old', 'pms', 'jv', 'bn', 'oc', 'ta', 'io', + 'be', 'an', 'nds', 'scn', 'sw', 'su', 'fy', 'af', 'nap', 'ku', + 'ast', 'bat-smg', 'zh-yue', 'ur', 'ml', 'wa', 'gu', 'qu', 'war', 'cv', + 'ksh', 'ga', 'tg', 'vec', 'roa-tara', 'gd', 'kn', 'uz', 'pam', 'lmo', + 'yi', 'mi', 'zh-min-nan', 'nah', 'glk', 'hsb', 'kk', 'co', 'roa-rup', 'als', + 'hy', 'sah', 'li', 'ia', 'tt', 'bcl', 'gan', 'os', 'nds-nl', 'tk', + 'sa', 'fiu-vro', 'fo', 'arz', 'vls', 'mn', 'am', 'nrm', 'dv', 'pag', + 'rm', 'map-bms', 'wuu', 'gv', 'ne', 'bar', 'se', 'sco', 'diq', 'fur', + 'my', 'lij', 'pnb', 'nov', 'mt', 'yo', 'bh', 'mzn', 'ilo', 'csb', + 'pi', 'zh-classical', 'ug', 'km', 'lad', 'si', 'frp', 'sc', 'ang', 'mg', + 'kw', 'haw', 'pdc', 'ps', 'szl', 'kv', 'to', 'pa', 'ie', 'hif', + 'hak', 'myv', 'gn', 'bo', 'ln', 'stq', 'crh', 'jbo', 'arc', 'wo', + 'nv', 'ext', 'ky', 'tpi', 'ty', 'cbk-zam', 'mhr', 'eml', 'zea', 'srn', + 'ay', 'pap', 'so', 'ig', 'kg', 'or', 'kab', 'ckb', 'lo', 'ace', + 'udm', 'ba', 'rmy', 'dsb', 'kaa', 'ce', 'sm', 'ks', 'av', 'cu', + 'tet', 'got', 'sd', 'mdf', 'iu', 'na', 'bm', 'kl', 'ab', 'pih', + 'as', 'pnt', 'cdo', 'chr', 'mwl', 'ee', 'om', 'xal', 'zu', 'ti', + 'ts', 'za', 'ss', 've', 'bi', 'ha', 'cr', 'dz', 'ch', 'bxr', + 'bug', 'xh', 'tn', 'ki', 'rw', 'ik', 'st', 'tw', 'ny', 'chy', + 'ak', 'fj', 'sn', 'ff', 'lg', 'lbe', 'rn', 'tum', 'sg', 'ng', ]
for lang in self.languages_by_size: @@ -94,6 +94,7 @@ u'Category redirect', u'Catredirect',), 'simple': (u"Category redirect", + u"Categoryredirect", u"Catredirect",), 'sq': (u'Kategori e zhvendosur', u'Category redirect',), @@ -140,10 +141,11 @@ 'be-x-old': [u'Неадназначнасць', u'Неадназначнасьць', u'Disambig'], 'bg': [u'Пояснение', u'Disambig'], 'bn': [u'দ্ব্যর্থতা নিরসন', u'Disambig'], - 'br': [u'Hvlstumm', u'Digejañ', u'Digejañ anvioù-badez'], + 'br': [u'Hvlstumm', u'Digejañ', u'Digejañ anvioù-badez', + u"Digejañ lec'hanvioù"], 'bs': [u'Čvor'], 'ca': [u'Desambiguació', u'Disambig', u'Desambigua', - u'acrònim', u'onomàstica'], + u'acrònim', u'onomàstica', u'DesambigCurta'], 'ceb': [u'Giklaro'], 'cdo': [u'Gì-ngiê'], 'crh': [u'Çoq manalı', u'Disambig'], @@ -188,7 +190,8 @@ 'io': [u'Homonimo', u'Disambig'], 'is': None, 'it': [u'Disambigua', u'Sigla2', u'Sigla3', u'Sigla4', u'Cogni'], - 'ja': [u'Aimai', u'Dab', u'曖昧さ回避', u'Disambig'], + 'ja': [u'Aimai', u'Dab', u'曖昧さ回避', u'Disambig', u'地名の曖昧さ回避|あはていん', + u'地名の曖昧さ回避', u'人名の曖昧さ回避', u'人名の曖昧さ回避|あたるへると'], 'ka': [u'მრავალმნიშვნელოვანი', u'მრავმნიშ'], 'kab': [u'Asefham'], 'kg': [u'Bisongidila'], @@ -198,7 +201,7 @@ 'kw': [u'Klerheans'], 'ksh': [u'Disambig'], 'la': [u'Discretiva', u'Disnomen'], - 'lb': [u'Homonymie', u'Disambig'], + 'lb': [u'Homonymie', u'Disambig', u'Homonymie Ofkierzungen'], 'li': [u'Verdudeliking', u'Verdudelikingpazjena', u'Vp'], 'lmo': [u'Desambiguació'], 'ln': [u'Bokokani'], @@ -213,7 +216,7 @@ 'nds': [u'Mehrdüdig Begreep', 'Disambig'], 'nds-nl': [u'Dv'], 'nl': [u'Dp', u'DP', u'Dp2', u'Dpintro', u'Cognomen'], - 'nn': [u'Fleirtyding'], + 'nn': [u'Fleirtyding', u'Tobokstavforkorting'], 'no': [u'Peker', u'Etternavn', u'Disambig', u'Tobokstavsforkortelse', u'Trebokstavsforkortelse', u'Flertydig', u'Pekerside'], 'nov': [u'Desambig'], @@ -237,7 +240,7 @@ 'sl': None, 'sq': [u'Kthjellim', u'Disambig'], 'sr': [u'Вишезначна одредница', u'Disambig', u'Вишезначна', - u'Višeznačna odrednica'], + u'Višeznačna odrednica', u'Взо'], 'srn': [u'Dp'], 'stq': [u'Begriepskläärenge'], 'su': [u'Disambig'], @@ -263,7 +266,7 @@ 'wo': [u'Bokktekki'], 'yi': [u'באדייטען'], 'zea': [u'dp', u'Deurverwiespagina'], - 'zh': [u'Disambig', u'消歧义', u'消歧义页', u'消歧義'], + 'zh': [u'Disambig', u'消歧义', u'消歧义页', u'消歧義', u'Letter disambig'], 'zh-classical': [u'Disambig', u'釋義', u'消歧義'], 'zh-min-nan': [u'Khu-pia̍t-ia̍h', 'KhPI', u'Disambig'], 'zh-yue': [u'搞清楚', u'Disambig'], @@ -345,10 +348,15 @@ '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', - 'ba', 'bar', 'bcl', 'be-x-old', 'be', 'bg', 'bh', 'bi', 'bm', 'bo', 'bpy', 'bug', 'bxr', + 'ab', 'ace', 'af', 'ak', 'als', 'am', 'an', 'ang', 'arc', 'arz', 'as', 'ast', 'av', 'ay', 'az', + 'ba', 'bat-smg', 'bar', 'bcl', 'be-x-old', 'be', 'bg', 'bh', 'bi', 'bm', 'bo', 'bpy', 'bug', 'bxr', 'cbk-zam', 'cdo', 'ce', 'ceb', 'ch', 'chr', 'chy', 'ckb', 'co', 'crh', 'cr', 'csb', 'cu', 'cv', 'cy', 'diq', 'dsb', 'dz', 'ee', 'el', 'eml', 'eo', 'et', 'eu', 'ext', 'fa', 'ff', 'fj', 'fo', 'frp', 'fur', 'ga', 'gan', 'gd', 'glk', 'gn', 'got', 'gu', 'gv', 'ha', 'hak', 'haw', 'hif', 'hi', 'hr', 'hsb', 'ht', 'hu', 'hy', @@ -357,7 +365,7 @@ 'lad', 'lb', 'lbe', 'lg', 'li', 'lij', 'lmo', 'ln', 'lo', 'lv', 'map-bms', 'mdf', 'mg', 'mhr', 'mi', 'mk', 'mn', 'ms', 'mt', 'mwl', 'myv', 'my', 'mzn', 'nah', 'na', 'nap', 'nds-nl', 'ne', 'new', 'ng', 'nl', 'nov', 'nrm', 'nv', 'ny', 'oc', 'om', 'or', 'os', - 'pam', 'pap', 'pa', 'pag', 'pdc', 'pi', 'pms', 'pnb', 'pnt', 'ps', 'qu', 'rm', 'rmy', 'rn', 'roa-rup', 'roa-tara', 'rw', + 'pam', 'pap', 'pa', 'pag', 'pdc', 'pi', 'pih', 'pms', 'pnb', 'pnt', 'ps', 'qu', 'rm', 'rmy', 'rn', 'roa-rup', 'roa-tara', 'rw', 'sah', 'sa', 'sc', 'scn', 'sco', 'sd', 'se', 'sg', 'sh', 'simple', 'si', 'sk', 'sm', 'sn', 'so', 'srn', 'stq', 'st', 'su', 'sw', 'szl', 'ta', 'te', 'tet', 'tg', 'th', 'ti', 'tk', 'tl', 'tn', 'to', 'tpi', 'ts', 'tt', 'tum', 'tw', 'ty', 'udm', 'ug', 'uz', 've', 'vls', 'wa', 'war', 'wo', 'wuu', @@ -503,6 +511,7 @@ 'pt': { '_default': [0], 'als': [0, 104], + 'ar': [0, 104], 'es': [0, 104], 'fr': [0, 104], 'lt': [0, 104] @@ -539,6 +548,7 @@ }, 'ar': { '_default': [0, 100], + 'pt': [0, 102], }, 'es': { '_default': [0],
Modified: branches/rewrite/pywikibot/families/wikiquote_family.py =================================================================== --- branches/rewrite/pywikibot/families/wikiquote_family.py 2009-11-23 14:57:45 UTC (rev 7685) +++ branches/rewrite/pywikibot/families/wikiquote_family.py 2009-11-23 16:00:39 UTC (rev 7686) @@ -11,14 +11,14 @@ self.name = 'wikiquote'
self.languages_by_size = [ - 'en', 'it', 'de', 'pl', 'pt', 'sk', 'ru', 'es', 'bg', 'bs', - 'sl', 'tr', 'he', 'lt', 'fr', 'cs', 'zh', 'fa', 'hu', 'uk', - 'id', 'sv', 'el', 'no', 'nl', 'ja', 'fi', 'eo', 'hy', 'et', - 'nn', 'ca', 'simple', 'ka', 'ar', 'ku', 'ko', 'hr', 'ro', 'gl', - 'sr', 'ml', 'li', 'is', 'th', 'af', 'te', 'da', 'sq', 'vi', - 'eu', 'az', 'la', 'br', 'hi', 'be', 'ast', 'uz', 'ang', 'zh-min-nan', - 'lb', 'mr', 'gu', 'su', 'ur', 'ta', 'wo', 'kn', 'ky', 'cy', - 'am', 'co', 'kk', + 'en', 'it', 'pl', 'de', 'pt', 'ru', 'sk', 'es', 'bg', 'bs', + 'sl', 'tr', 'fr', 'he', 'lt', 'cs', 'zh', 'el', 'hu', 'fa', + 'uk', 'id', 'sv', 'nl', 'no', 'ja', 'fi', 'simple', 'hy', 'eo', + 'et', 'nn', 'ca', 'ka', 'ar', 'ko', 'ku', 'hr', 'gl', 'ro', + 'sr', 'ml', 'li', 'is', 'th', 'te', 'af', 'da', 'sq', 'eu', + 'az', 'vi', 'la', 'cy', 'br', 'hi', 'be', 'ast', 'uz', 'ta', + 'ang', 'zh-min-nan', 'mr', 'gu', 'lb', 'su', 'ur', 'wo', 'ky', 'kn', + 'am', 'kk', 'co', ]
for lang in self.languages_by_size: @@ -47,9 +47,14 @@
# Global bot allowed languages on http://meta.wikimedia.org/wiki/Bot_policy/Implementation#Current_implementat... self.cross_allowed = [ - 'af','am','ang','ar','ast','az','ca','da','fa','it', - 'ka','ko','la','nn','no','ro','simple','sv','vi','zh' + 'af','am','ang','ar','ast','az','bg','bs','ca','cs','da','el','es','eu','fa','fr','fi','he','hu','hy','id','it', + 'ka','ko','la','lt','nl','nn','no','pt','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: branches/rewrite/pywikibot/families/wikisource_family.py =================================================================== --- branches/rewrite/pywikibot/families/wikisource_family.py 2009-11-23 14:57:45 UTC (rev 7685) +++ branches/rewrite/pywikibot/families/wikisource_family.py 2009-11-23 16:00:39 UTC (rev 7686) @@ -11,11 +11,11 @@ self.name = 'wikisource'
self.languages_by_size = [ - 'en', 'pt', 'fr', 'zh', 'es', 'de', 'ru', 'he', 'it', 'ar', + 'en', 'pt', 'ru', 'zh', 'fr', 'es', 'de', 'he', 'it', 'ar', 'fa', 'hu', 'pl', 'th', 'cs', 'ro', 'hr', 'te', 'fi', 'tr', - 'nl', 'sv', 'sl', 'ko', 'sr', 'ja', 'la', 'uk', 'el', 'li', - 'ml', 'is', 'bs', 'id', 'ca', 'bn', 'az', 'yi', 'hy', 'mk', - 'no', 'da', 'vi', 'et', 'ta', 'bg', 'lt', 'kn', 'gl', 'cy', + 'nl', 'sv', 'sl', 'ko', 'sr', 'uk', 'ja', 'el', 'la', 'li', + 'yi', 'ml', 'az', 'is', 'bn', 'bs', 'ca', 'vi', 'id', 'hy', + 'mk', 'no', 'da', 'et', 'ta', 'bg', 'lt', 'kn', 'gl', 'cy', 'sk', 'zh-min-nan', 'fo', ]
@@ -53,8 +53,13 @@ } # Global bot allowed languages on http://meta.wikimedia.org/wiki/Bot_policy/Implementation#Current_implementat... self.cross_allowed = [ - 'el','fa','it','ko','no','zh' + 'el','fa','it','ko','no','vi','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: branches/rewrite/pywikibot/families/wiktionary_family.py =================================================================== --- branches/rewrite/pywikibot/families/wiktionary_family.py 2009-11-23 14:57:45 UTC (rev 7685) +++ branches/rewrite/pywikibot/families/wiktionary_family.py 2009-11-23 16:00:39 UTC (rev 7686) @@ -11,20 +11,20 @@ self.name = 'wiktionary'
self.languages_by_size = [ - 'fr', 'en', 'tr', 'lt', 'vi', 'ru', 'io', 'zh', 'el', 'pl', - 'fi', 'no', 'hu', 'it', 'ta', 'sv', 'de', 'ko', 'lo', 'pt', - 'nl', 'ku', 'ja', 'es', 'id', 'te', 'ro', 'et', 'gl', 'bg', - 'ca', 'ar', 'vo', 'uk', 'fa', 'is', 'sr', 'af', 'sw', 'scn', - 'fy', 'th', 'br', 'oc', 'simple', 'li', 'cs', 'he', 'sl', 'hy', - 'sq', 'tt', 'la', 'zh-min-nan', 'da', 'ast', 'tk', 'ur', 'wa', 'hsb', - 'kk', 'ml', 'ky', 'hr', 'wo', 'kn', 'ang', 'eo', 'hi', 'gn', - 'ga', 'ia', 'az', 'co', 'sk', 'csb', 'st', 'ms', 'nds', 'kl', - 'sd', 'ug', 'ti', 'tl', 'mk', 'ka', 'an', 'my', 'gu', 'km', - 'lv', 'cy', 'ts', 'qu', 'eu', 'fo', 'bs', 'am', 'rw', 'mr', - 'su', 'chr', 'mn', 'nah', 'om', 'ie', 'yi', 'be', 'iu', 'mg', - 'sh', 'gd', 'nn', 'bn', 'zu', 'si', 'pa', 'mt', 'dv', 'tpi', - 'mi', 'roa-rup', 'jv', 'tg', 'ps', 'ik', 'so', 'uz', 'ha', 'gv', - 'ss', 'kw', 'sa', 'ay', 'na', 'jbo', 'ne', 'tn', 'sm', 'sg', + 'fr', 'en', 'lt', 'tr', 'vi', 'ru', 'zh', 'io', 'pl', 'el', + 'fi', 'hu', 'no', 'it', 'ta', 'de', 'sv', 'ko', 'pt', 'nl', + 'lo', 'ku', 'ja', 'es', 'ro', 'id', 'te', 'et', 'gl', 'bg', + 'uk', 'ca', 'ar', 'kn', 'vo', 'ml', 'fa', 'is', 'sr', 'af', + 'li', 'sw', 'cs', 'scn', 'fy', 'th', 'simple', 'br', 'oc', 'he', + 'sl', 'hy', 'sq', 'tt', 'la', 'zh-min-nan', 'da', 'hr', 'ast', 'tk', + 'wa', 'ur', 'hsb', 'kk', 'ky', 'wo', 'ang', 'eo', 'hi', 'ga', + 'gn', 'az', 'ia', 'co', 'sk', 'csb', 'st', 'ms', 'mr', 'tl', + 'ka', 'nds', 'kl', 'sd', 'ug', 'ti', 'mk', 'an', 'my', 'gu', + 'km', 'lv', 'eu', 'cy', 'mg', 'ts', 'qu', 'sh', 'bs', 'fo', + 'am', 'rw', 'chr', 'su', 'mn', 'om', 'nah', 'bn', 'ie', 'yi', + 'be', 'iu', 'gd', 'nn', 'zu', 'si', 'tg', 'pa', 'mt', 'dv', + 'tpi', 'roa-rup', 'mi', 'jv', 'kw', 'ps', 'uz', 'ik', 'so', 'gv', + 'sg', 'ha', 'ss', 'sa', 'ay', 'na', 'jbo', 'ne', 'tn', 'sm', 'lb', 'ks', 'fj', 'ln', 'za', 'dz', 'als', ]
@@ -38,9 +38,14 @@ # Global bot allowed languages on http://meta.wikimedia.org/wiki/Bot_policy/Implementation#Current_implementat... self.cross_allowed = [ 'ang', 'ast', 'az', 'bg', 'bn', 'da', 'eo', 'es', 'fa', 'fy', 'ga', 'gd', 'hu', - 'ia', 'ie', 'ik', 'jv', 'ka', 'li', 'lt', 'mk', 'nl', 'no', 'pt', 'sk', 'tg', 'th', 'ti', + 'ia', 'ie', 'ik', 'jv', 'ka', 'li', 'lt', 'mk', 'nl', 'no', 'oc', '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...
Modified: branches/rewrite/pywikibot/family.py =================================================================== --- branches/rewrite/pywikibot/family.py 2009-11-23 14:57:45 UTC (rev 7685) +++ branches/rewrite/pywikibot/family.py 2009-11-23 16:00:39 UTC (rev 7686) @@ -483,8 +483,18 @@ self.disambiguationTemplates = { '_default': [] } + + # A list of projects that share cross-project sessions. + self.cross_projects = [] + + # A list with the name for cross-project cookies. + # default for wikimedia centralAuth extensions. + self.cross_projects_cookies = ['centralauth_Session', 'centralauth_Token', 'centralauth_User'] + self.cross_projects_cookie_username = 'centralauth_User' + # A list with the name in the cross-language flag permissions self.cross_allowed = [] + # A list with the name of the category containing disambiguation # pages for the various languages. Only one category per language, # and without the namespace, so add things like:
Property changes on: branches/rewrite/pywikibot/family.py ___________________________________________________________________ Modified: svn:mergeinfo - /trunk/pywikipedia/family.py:6057-7548 + /trunk/pywikipedia/family.py:6057-7685
pywikipedia-svn@lists.wikimedia.org