Revision: 7038 Author: alexsh Date: 2009-07-09 17:40:41 +0000 (Thu, 09 Jul 2009)
Log Message: ----------- *NewFamily:wekey, ubuntutw, twcareer, celtic, scratchpad, fon
Added Paths: ----------- trunk/pywikipedia/families/celtic_family.py trunk/pywikipedia/families/fon_family.py trunk/pywikipedia/families/scratchpad_wikia_family.py trunk/pywikipedia/families/twcareer_family.py trunk/pywikipedia/families/ubuntutw_family.py trunk/pywikipedia/families/wekey_family.py
Added: trunk/pywikipedia/families/celtic_family.py =================================================================== --- trunk/pywikipedia/families/celtic_family.py (rev 0) +++ trunk/pywikipedia/families/celtic_family.py 2009-07-09 17:40:41 UTC (rev 7038) @@ -0,0 +1,24 @@ +# -*- coding: utf-8 -*- + +import family + +# CeltIKI - The Celtic Encyclopedia + +class Family(family.Family): + def __init__(self): + family.Family.__init__(self) + + self.name = 'celtic' + + self.langs = { + 'eml': 'celtic.gdr-online.eu', + } + self.namespaces[4] = { + 'eml': u'CeltIKI', + } + self.namespaces[5] = { + 'eml': u'Discussioni CeltIKI', + } + + def version(self, code): + return "1.11.0"
Added: trunk/pywikipedia/families/fon_family.py =================================================================== --- trunk/pywikipedia/families/fon_family.py (rev 0) +++ trunk/pywikipedia/families/fon_family.py 2009-07-09 17:40:41 UTC (rev 7038) @@ -0,0 +1,40 @@ +# -*- coding: utf-8 -*- + +import family + +# The official Beta Wiki. +class Family(family.Family): + + def __init__(self): + + family.Family.__init__(self) + self.name = 'fon' + + self.langs = { + 'en': None, + } + + self.namespaces[4] = { + '_default': u'FON Wiki Beta', + } + + self.namespaces[5] = { + '_default': u'FON Wiki Beta talk', + } + + self.namespaces[6] = { + '_default': u'Image', + } + + self.namespaces[7] = { + '_default': u'Image talk', + } + + def hostname(self, code): + return 'wiki.fon.com' + + def scriptpath(self, code): + return '/mediawiki' + + def version(self, code): + return "1.12.1" \ No newline at end of file
Added: trunk/pywikipedia/families/scratchpad_wikia_family.py =================================================================== --- trunk/pywikipedia/families/scratchpad_wikia_family.py (rev 0) +++ trunk/pywikipedia/families/scratchpad_wikia_family.py 2009-07-09 17:40:41 UTC (rev 7038) @@ -0,0 +1,84 @@ +# -*- coding: utf-8 -*- +import family, config + +class Family(family.Family): + def __init__(self): + family.Family.__init__(self) + self.name = 'scratchpad_wikia' + + self.langs = { + 'de':'de.mini.wikia.com', + 'en':'scratchpad.wikia.com', + 'fr':'bloc-notes.wikia.com', + 'ja':'ja.scratchpad.wikia.com', + 'zh':'zh.scratchpad.wikia.com', + } + + # Most namespaces are inherited from family.Family. + self.namespaces[1]['fr'] = u'Discuter' + + self.namespaces[3]['fr'] = u'Discussion Utilisateur' + + self.namespaces[4] = { + '_default': u'Scratchpad', + 'de': u'Mini-Wikia', + 'fr': u'Bloc notes', + 'ja': u'Scratchpad Wiki', + 'zh': u'圍紀實驗室', + } + self.namespaces[5] = { + '_default': u'Scratchpad talk', + 'de': u'Mini-Wikia Diskussion', + 'en': u'Scratchpad talk', + 'fr': u'Discussion Bloc notes', + 'ja': u'Scratchpad Wiki‐ノート', + 'zh': u'圍紀實驗室 talk', + } + self.namespaces[7]['fr'] = u'Discussion Fichier' + + self.namespaces[11]['fr'] = u'Discussion Modèle' + + self.namespaces[13]['fr'] = u'Discussion Aide' + + self.namespaces[15]['fr'] = u'Discussion Catégorie' + + self.namespaces[400] = { + '_default': u'Video', + } + self.namespaces[401] = { + '_default': u'Video talk', + } + self.namespaces[500] = { + '_default': u'User blog', + 'de': u'Benutzer Blog', + } + self.namespaces[501] = { + '_default': u'User blog comment', + 'de': u'Benutzer Blog Kommentare', + } + self.namespaces[502] = { + '_default': u'Blog', + } + self.namespaces[503] = { + '_default': u'Blog talk', + 'de': u'Blog Diskussion', + } + self.namespaces[110] = { + '_default': u'Forum', + } + self.namespaces[111] = { + '_default': u'Forum talk', + } + # A few selected big languages for things that we do not want to loop over + # all languages. This is only needed by the titletranslate.py module, so + # if you carefully avoid the options, you could get away without these + # for another wikimedia family. + + self.languages_by_size = ['en','de'] + + def version(self, code): + return "1.14.0" + + def scriptpath(self, code): + return '' +
Added: trunk/pywikipedia/families/twcareer_family.py =================================================================== --- trunk/pywikipedia/families/twcareer_family.py (rev 0) +++ trunk/pywikipedia/families/twcareer_family.py 2009-07-09 17:40:41 UTC (rev 7038) @@ -0,0 +1,39 @@ +# -*- coding: utf-8 -*- + +import family + +class Family(family.Family): + + def __init__(self): + + family.Family.__init__(self) + self.name = 'twcareer' + + self.langs = { + 'zh': None, + } + + self.namespaces[4] = { + '_default': u'TwCareer', + } + + self.namespaces[5] = { + '_default': u'TwCareer talk', + } + + self.namespaces[6] = { + '_default': u'Image', + } + + self.namespaces[7] = { + '_default': u'Image talk', + } + + def hostname(self, code): + return 'www.twcareer.com' + + def version(self, code): + return "1.11.0" + + def scriptpath(self, code): + return '' \ No newline at end of file
Added: trunk/pywikipedia/families/ubuntutw_family.py =================================================================== --- trunk/pywikipedia/families/ubuntutw_family.py (rev 0) +++ trunk/pywikipedia/families/ubuntutw_family.py 2009-07-09 17:40:41 UTC (rev 7038) @@ -0,0 +1,83 @@ +# -*- coding: utf-8 -*- + +import family + +class Family(family.Family): + + def __init__(self): + + family.Family.__init__(self) + self.name = 'ubuntutw' #Set the family name; this should be the same as in the filename. + + self.langs = { + 'zh': None, + } + + self.namespaces[-2] = { + '_default': u'媒體', + } + + self.namespaces[-1] = { + '_default': u'特殊', + } + + self.namespaces[1] = { + '_default': u'討論', + } + + self.namespaces[2] = { + '_default': u'使用者', + } + + self.namespaces[3] = { + '_default': u'討論', + } + + self.namespaces[4] = { + '_default': u'Ubuntu 正體中文 Wiki', + } + + self.namespaces[5] = { + '_default': u'Ubuntu 正體中文 Wiki對話', + } + + self.namespaces[6] = { + '_default': u'圖片', + } + + self.namespaces[7] = { + '_default': u'圖片討論', + } + + self.namespaces[10] = { + '_default': u'模板', + } + + self.namespaces[11] = { + '_default': u'模板討論', + } + + self.namespaces[12] = { + '_default': u'使用說明', + } + + self.namespaces[13] = { + '_default': u'使用說明討論', + } + + self.namespaces[14] = { + '_default': u'分類', + } + + self.namespaces[15] = { + '_default': u'分類討論', + } + + def hostname(self, code): + return 'wiki.ubuntu-tw.org' + + def version(self, code): + return "1.12.0" + + def scriptpath(self, code): + return '' \ No newline at end of file
Added: trunk/pywikipedia/families/wekey_family.py =================================================================== --- trunk/pywikipedia/families/wekey_family.py (rev 0) +++ trunk/pywikipedia/families/wekey_family.py 2009-07-09 17:40:41 UTC (rev 7038) @@ -0,0 +1,87 @@ +# -*- coding: utf-8 -*- + +import family + +class Family(family.Family): + + def __init__(self): + + family.Family.__init__(self) + self.name = 'wekey' + + self.langs = { + 'zh': None, + } + + self.namespaces[-2] = { + '_default': u'媒體', + } + + self.namespaces[-1] = { + '_default': u'特殊', + } + + self.namespaces[1] = { + '_default': u'討論', + } + + self.namespaces[2] = { + '_default': u'使用者', + } + + self.namespaces[3] = { + '_default': u'討論', + } + + self.namespaces[4] = { + '_default': u'Wekeywiki', + } + + self.namespaces[5] = { + '_default': u'Wekeywiki對話', + } + + self.namespaces[6] = { + '_default': u'圖片', + } + + self.namespaces[7] = { + '_default': u'圖片討論', + } + + self.namespaces[10] = { + '_default': u'模板', + } + + self.namespaces[11] = { + '_default': u'模板討論', + } + + self.namespaces[12] = { + '_default': u'使用說明', + } + + self.namespaces[13] = { + '_default': u'使用說明討論', + } + + self.namespaces[14] = { + '_default': u'分類', + } + + self.namespaces[15] = { + '_default': u'分類討論', + } + + def hostname(self, code): + return 'wekey.westart.tw' + + def version(self, code): + return "1.12.0" + + def scriptpath(self, code): + return '' + + def apipath(self, code): + raise NotImplementedError( + "The %s family does not support api.php" % self.name)
pywikipedia-svn@lists.wikimedia.org