Feature Requests item #2846370, was opened at 2009-08-28 17:02 Message generated for change (Tracker Item Submitted) made by nobody You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=603141&aid=2846370...
Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: rewrite Group: None Status: Open Priority: 5 Private: No Submitted By: Nobody/Anonymous (nobody) Assigned to: Nobody/Anonymous (nobody) Summary: Suggestions regarding -addcat option in replace.py
Initial Comment: 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)
----------------------------------------------------------------------
You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=603141&aid=2846370...
pywikipedia-bugs@lists.wikimedia.org