Revision: 6861 Author: multichill Date: 2009-05-09 10:09:55 +0000 (Sat, 09 May 2009)
Log Message: ----------- Add dbName for Commons family Fix dbName (+ _p) fro Wikipedia family
Modified Paths: -------------- trunk/pywikipedia/families/commons_family.py trunk/pywikipedia/families/wikipedia_family.py
Modified: trunk/pywikipedia/families/commons_family.py =================================================================== --- trunk/pywikipedia/families/commons_family.py 2009-05-08 18:54:53 UTC (rev 6860) +++ trunk/pywikipedia/families/commons_family.py 2009-05-09 10:09:55 UTC (rev 6861) @@ -56,6 +56,9 @@ def version(self, code): return '1.15alpha'
+ def dbName(self, code): + return 'commonswiki_p' + def shared_image_repository(self, code): return ('commons', 'commons')
Modified: trunk/pywikipedia/families/wikipedia_family.py =================================================================== --- trunk/pywikipedia/families/wikipedia_family.py 2009-05-08 18:54:53 UTC (rev 6860) +++ trunk/pywikipedia/families/wikipedia_family.py 2009-05-09 10:09:55 UTC (rev 6861) @@ -1083,7 +1083,7 @@ # returns the name of the MySQL database # for historic reasons, the databases are called xxwiki instead of # xxwikipedia for Wikipedias. - return '%swiki' % code + return '%swiki_p' % code
def code2encodings(self, code): """Return a list of historical encodings for a specific language
pywikipedia-svn@lists.wikimedia.org