http://www.mediawiki.org/wiki/Special:Code/pywikipedia/10692
Revision: 10692 Author: xqt Date: 2012-11-11 08:39:46 +0000 (Sun, 11 Nov 2012) Log Message: ----------- removed duplicated dict entry sort entries by code added svn properties
Modified Paths: -------------- trunk/pywikipedia/families/oldwikivoyage_family.py
Property Changed: ---------------- trunk/pywikipedia/families/oldwikivoyage_family.py
Modified: trunk/pywikipedia/families/oldwikivoyage_family.py =================================================================== --- trunk/pywikipedia/families/oldwikivoyage_family.py 2012-11-11 08:26:30 UTC (rev 10691) +++ trunk/pywikipedia/families/oldwikivoyage_family.py 2012-11-11 08:39:46 UTC (rev 10692) @@ -1,20 +1,24 @@ # -*- coding: utf-8 -*- import family
+__version__ = '$Id$' + +#Family file for the original wikivoyage + class Family(family.Family): def __init__(self): family.Family.__init__(self) self.name = 'oldwikivoyage' self.langs = { + 'de': u'www.wikivoyage-old.org', + 'en': u'en.wikivoyage-old.org', 'fr': u'fr.wikivoyage-old.org', - 'wts': u'wts.wikivoyage-old.org', - 'en': u'en.wikivoyage-old.org', + 'it': u'www.wikivoyage-old.org', + 'nl': u'nl.wikivoyage-old.org', 'ru': u'ru.wikivoyage-old.org', - 'de': u'www.wikivoyage-old.org', 'shared': u'www.wikivoyage-old.org', - 'it': u'www.wikivoyage-old.org', - 'nl': u'nl.wikivoyage-old.org', 'sv': u'sv.wikivoyage-old.org', + 'wts': u'wts.wikivoyage-old.org', }
self.namespaces[1] = self.namespaces.get(1, {}) @@ -107,29 +111,28 @@
def scriptpath(self, code): return { + 'de': u'/w/de', + 'en': u'/w', 'fr': u'/w', - 'wts': u'/w', - 'en': u'/w', + 'it': u'/w/it', + 'nl': u'/w', 'ru': u'/w', - 'de': u'/w/de', 'shared': u'/w/shared', - 'it': u'/w/it', - 'nl': u'/w', 'sv': u'/w', + 'wts': u'/w', }[code]
def version(self, code): return { + 'de': u'1.13.1', + 'en': u'1.19.1', 'fr': u'1.19.1', - 'wts': u'1.19.1', - 'en': u'1.19.1', - 'ru': u'1.19.1', - 'de': u'1.13.1', - 'en': u'1.13.1', 'it': u'1.13.1', 'nl': u'1.19.1', + 'ru': u'1.19.1', 'sv': u'1.19.1', 'shared': u'1.13.1', + 'wts': u'1.19.1', }[code]
def apipath(self, code):
Property changes on: trunk/pywikipedia/families/oldwikivoyage_family.py ___________________________________________________________________ Added: svn:eol-style + native Added: svn:keywords + Author Date Id Revision
pywikipedia-svn@lists.wikimedia.org