Last modified: 2013-10-05 04:20:42 UTC
Originally from: http://sourceforge.net/p/pywikipediabot/feature-requests/221/ Reported by: Anonymous user Created on: 2009-08-28 17:02:21 Subject: Suggestions regarding -addcat option in replace.py Original description: The initial problem: I wanted to replace text in categories AND simultaneously add another category, but the addcat function undid the textual replacement. I got it to work, here's the replacement.py diff \(the first change is a syntax correction, the second change is from http://osdir.com/ml/pywikipedia-bugs/2009-07/msg00067.html \): 304c304 < cat\_ns + ':' + addedCat\) \--- > cat\_ns + addedCat\) 390c390 < cats = page.categories\(nofollow\_redirects=True\) \--- > cats = page.categories\(\) 392d391 < cats.append\(self.addedCat\) 394c393 < cats\) \--- > \[self.addedCat\],addOnly = True\)