https://bugzilla.wikimedia.org/show_bug.cgi?id=55076
Web browser: --- Bug ID: 55076 Summary: Suggestions regarding -addcat option in replace.py Product: Pywikibot Version: unspecified Hardware: All OS: All Status: NEW Severity: enhancement Priority: Unprioritized Component: General Assignee: Pywikipedia-bugs@lists.wikimedia.org Reporter: legoktm.wikipedia@gmail.com Classification: Unclassified Mobile Platform: ---
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)
https://bugzilla.wikimedia.org/show_bug.cgi?id=55076
Kunal Mehta (Legoktm) legoktm.wikipedia@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- See Also| |https://sourceforge.net/p/p | |ywikipediabot/feature-reque | |sts/221
pywikipedia-bugs@lists.wikimedia.org