http://www.mediawiki.org/wiki/Special:Code/pywikipedia/10142
Revision: 10142 Author: xqt Date: 2012-04-20 16:12:35 +0000 (Fri, 20 Apr 2012) Log Message: ----------- update mw release 1.20wmf1 from trunk r10140
Modified Paths: -------------- branches/rewrite/pywikibot/families/commons_family.py branches/rewrite/pywikibot/families/meta_family.py branches/rewrite/pywikibot/families/test_family.py branches/rewrite/pywikibot/families/wikipedia_family.py
Modified: branches/rewrite/pywikibot/families/commons_family.py =================================================================== --- branches/rewrite/pywikibot/families/commons_family.py 2012-04-20 16:10:12 UTC (rev 10141) +++ branches/rewrite/pywikibot/families/commons_family.py 2012-04-20 16:12:35 UTC (rev 10142) @@ -42,10 +42,6 @@ 'meta', 'mediawiki', 'test', 'incubator', 'species', ]
- - def version(self, code): - return '1.20wmf1' - def dbName(self, code): return 'commonswiki_p'
Modified: branches/rewrite/pywikibot/families/meta_family.py =================================================================== --- branches/rewrite/pywikibot/families/meta_family.py 2012-04-20 16:10:12 UTC (rev 10141) +++ branches/rewrite/pywikibot/families/meta_family.py 2012-04-20 16:12:35 UTC (rev 10142) @@ -21,9 +21,6 @@ 'commons', 'species', ]
- def version(self,code): - return '1.20wmf1' - def shared_image_repository(self, code): return ('commons', 'commons')
Modified: branches/rewrite/pywikibot/families/test_family.py =================================================================== --- branches/rewrite/pywikibot/families/test_family.py 2012-04-20 16:10:12 UTC (rev 10141) +++ branches/rewrite/pywikibot/families/test_family.py 2012-04-20 16:12:35 UTC (rev 10142) @@ -4,8 +4,8 @@
from pywikibot import family
-# The test wikipedia family
+# The test wikipedia family class Family(family.Family): def __init__(self): family.Family.__init__(self) @@ -14,9 +14,6 @@ 'test': 'test.wikipedia.org', }
- def version(self, code): - return '1.20wmf1' - def shared_image_repository(self, code): return ('commons', 'commons')
Modified: branches/rewrite/pywikibot/families/wikipedia_family.py =================================================================== --- branches/rewrite/pywikibot/families/wikipedia_family.py 2012-04-20 16:10:12 UTC (rev 10141) +++ branches/rewrite/pywikibot/families/wikipedia_family.py 2012-04-20 16:12:35 UTC (rev 10142) @@ -587,6 +587,12 @@ # xxwikipedia for Wikipedias. return '%swiki_p' % code
+ def version(self, code): + """Return MediaWiki version number as a string.""" + # Don't use this, use versionnumber() instead. This only exists + # to not break family files. + return '1.19wmf1' + def code2encodings(self, code): """Return a list of historical encodings for a specific language wikipedia"""
pywikipedia-svn@lists.wikimedia.org