Revision: 7248 Author: alexsh Date: 2009-09-15 18:51:10 +0000 (Tue, 15 Sep 2009)
Log Message: ----------- ReplaceRobot().__init__():change addedCat to use defaultNamespace
Modified Paths: -------------- trunk/pywikipedia/replace.py
Modified: trunk/pywikipedia/replace.py =================================================================== --- trunk/pywikipedia/replace.py 2009-09-15 08:37:30 UTC (rev 7247) +++ trunk/pywikipedia/replace.py 2009-09-15 18:51:10 UTC (rev 7248) @@ -300,9 +300,7 @@ self.editSummary = editSummary if addedCat: site = wikipedia.getSite() - cat_ns = site.category_namespaces()[0] - self.addedCat = wikipedia.Page(site, - cat_ns + ':' + addedCat) + self.addedCat = wikipedia.Page(site, addCat, defaultNamespace=14) self.sleep = sleep
def isTitleExcepted(self, title):
pywikipedia-svn@lists.wikimedia.org