Revision: 8432 Author: xqt Date: 2010-08-22 20:41:11 +0000 (Sun, 22 Aug 2010)
Log Message: ----------- Changed handling of cross namespace interlanguage links for author namespace from trunk r8430
Modified Paths: -------------- branches/rewrite/pywikibot/families/wikisource_family.py
Modified: branches/rewrite/pywikibot/families/wikisource_family.py =================================================================== --- branches/rewrite/pywikibot/families/wikisource_family.py 2010-08-22 20:29:14 UTC (rev 8431) +++ branches/rewrite/pywikibot/families/wikisource_family.py 2010-08-22 20:41:11 UTC (rev 8432) @@ -60,6 +60,67 @@ 'meta', 'mediawiki', 'test', 'incubator', 'commons', 'species' ]
+ self.authornamespaces = { + '_default': [0], + 'ar': [102], + 'bg': [100], + 'cs': [100], + 'da': [102], + 'en': [102], + 'fa': [102], + 'fr': [102], + 'hr': [100], + 'hu': [100], + 'hy': [100], + 'it': [102], + 'ko': [100], + 'la': [102], + 'nl': [102], + 'no': [102], + 'pl': [104], + 'pt': [102], + 'sv': [106], + 'tr': [100], + 'vi': [102], + 'zh': [102], + } + + self.crossnamespace[0] = { + '_default': self.authornamespaces, + } + self.crossnamespace[100] = { + 'bg': self.authornamespaces, + 'cs': self.authornamespaces, + 'hr': self.authornamespaces, + 'hu': self.authornamespaces, + 'hy': self.authornamespaces, + 'ko': self.authornamespaces, + 'tr': self.authornamespaces, + } + + self.crossnamespace[102] = { + 'ar': self.authornamespaces, + 'da': self.authornamespaces, + 'en': self.authornamespaces, + 'fa': self.authornamespaces, + 'fr': self.authornamespaces, + 'it': self.authornamespaces, + 'la': self.authornamespaces, + 'nl': self.authornamespaces, + 'no': self.authornamespaces, + 'pt': self.authornamespaces, + 'vi': self.authornamespaces, + 'zh': self.authornamespaces, + } + + self.crossnamespace[104] = { + 'pl': self.authornamespaces, + } + + self.crossnamespace[106] = { + 'sv': self.authornamespaces, + } + def version(self, code): return '1.16wmf4'
pywikipedia-svn@lists.wikimedia.org