http://www.mediawiki.org/wiki/Special:Code/pywikipedia/11163
Revision: 11163
Author: legoktm
Date: 2013-03-02 20:04:53 +0000 (Sat, 02 Mar 2013)
Log Message:
-----------
Remove dbName settings which were being overriden in APISite.dbName()
Additionally, these were incorrect since they had the "_p"
suffix which is only used on the Toolserver and not
the actual production site, which would have caused
issues for Wikidata.
Modified Paths:
--------------
branches/rewrite/pywikibot/families/commons_family.py
branches/rewrite/pywikibot/families/wikipedia_family.py
Modified: branches/rewrite/pywikibot/families/commons_family.py
===================================================================
--- branches/rewrite/pywikibot/families/commons_family.py 2013-03-02
14:47:05 UTC (rev 11162)
+++ branches/rewrite/pywikibot/families/commons_family.py 2013-03-02
20:04:53 UTC (rev 11163)
@@ -36,9 +36,6 @@
'commons': u'Disambiguation'
}
- def dbName(self, code):
- return 'commonswiki_p'
-
def ssl_pathprefix(self, code):
return "/wikipedia/commons"
Modified: branches/rewrite/pywikibot/families/wikipedia_family.py
===================================================================
--- branches/rewrite/pywikibot/families/wikipedia_family.py 2013-03-02
14:47:05 UTC (rev 11162)
+++ branches/rewrite/pywikibot/families/wikipedia_family.py 2013-03-02
20:04:53 UTC (rev 11163)
@@ -552,12 +552,6 @@
else:
return self.known_families
- def dbName(self, code):
- # returns the name of the MySQL database
- # for historic reasons, the databases are called xxwiki instead of
- # xxwikipedia for Wikipedias.
- return '%swiki_p' % code
-
def code2encodings(self, code):
"""Return a list of historical encodings for a specific language
wikipedia"""
_______________________________________________
Pywikipedia-svn mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/pywikipedia-svn