Bugs item #3315973, was opened at 2011-06-14 01:54 Message generated for change (Settings changed) made by xqt You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=603138&aid=3315973...
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: General Group: None
Status: Closed Resolution: Fixed
Priority: 5 Private: No Submitted By: Nobody/Anonymous (nobody)
Assigned to: xqt (xqt)
Summary: redirect.py sometimes categorizes double redirects
Initial Comment: version: Pywikipedia (r8725 (wikipedia.py) 2010/11/15, 08:44:06) Python 2.7.1 (r271:86832, Nov 27 2010, 18:30:46) [MSC v.1500 32 bit (Intel)] config-settings: use_api = True use_api_login = True
In class RedirectRobot, for fixing Special:DoubleRedirects please include capability to detect if the final target page is in the Category namespace (ns:14) and in the case that it returns true append a colon before replacing the appropriate target to avoid categorizing the redirect itself.
E.g.:
Foo <<<
Links to: [[Bar]]. Links to: [[Category:Foobar]]. - #REDIRECT [[Bar]] + #REDIRECT [[:Category:Foobar]] ^(and here is the extra colon)
Otherwise, [[Foo]] would be categorized in [[Category:Foobar]], which is not desirable.
----------------------------------------------------------------------
Comment By: xqt (xqt)
Date: 2011-06-29 07:51
Message: fixed in r9320
----------------------------------------------------------------------
You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=603138&aid=3315973...
pywikipedia-bugs@lists.wikimedia.org