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(a)lists.wikimedia.org
Reporter: legoktm.wikipedia(a)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\)
--
You are receiving this mail because:
You are the assignee for the bug.