Revision: 7010
Author: russblau
Date: 2009-07-01 18:19:47 +0000 (Wed, 01 Jul 2009)
Log Message:
-----------
Override dbName() to get database id from the server, not the family file.
Modified Paths:
--------------
branches/rewrite/pywikibot/site.py
Modified: branches/rewrite/pywikibot/site.py
===================================================================
--- branches/rewrite/pywikibot/site.py 2009-07-01 15:15:50 UTC (rev 7009)
+++ branches/rewrite/pywikibot/site.py 2009-07-01 18:19:47 UTC (rev 7010)
@@ -895,6 +895,11 @@
return self.siteinfo['case']
+ def dbName(self):
+ """Return this site's internal id."""
+
+ return self.siteinfo['wikiid']
+
def language(self):
"""Return the code for the language of this Site."""
@@ -1153,7 +1158,7 @@
blgen.request["gblfilterredir"] = filterRedirects and "redirects"\
or "nonredirects"
if followRedirects:
- # bug: see http://bugzilla.wikimedia.org/show_bug.cgi?id=16218
+ # bug: see http://bugzilla.wikimedia.org/show_bug.cgi?id=7304
# links identified by MediaWiki as redirects may not really be,
# so we have to check each "redirect" page and see if it
# really redirects to this page