[Pywikipedia-bugs] [ pywikipediabot-Bugs-3115233 ] category_redirect.py

SourceForge.net noreply at sourceforge.net
Sun Oct 23 09:48:40 UTC 2011


Bugs item #3115233, was opened at 2010-11-22 09:55
Message generated for change (Settings changed) made by xqt
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=3115233&group_id=93107

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: category
Group: None
>Status: Closed
Resolution: Fixed
Priority: 5
Private: No
Submitted By: rubin16 (rubin16)
Assigned to: xqt (xqt)
Summary: category_redirect.py

Initial Comment:
There is one problem with this script. Imagine that category redirect leads from Category X to Category Y. There are both categories X and Y in one article, Script changes X to Y and we get double Y category in wikicode. Is it possible to update script so that it wouldn't add double category but just delete category X because Y is already present?

http://ru.wikipedia.org/w/index.php?title=Танкобоязнь&diff=29580221&oldid=28346103

You can see such a behaviour in the diff - redirect from Category:Военная наука is changed to Category:Военное дело. But we already have such a category and that's why we get:
	
[[Категория:Военное дело]]
[[Категория:Военное дело]] 

Category_redirect.py is translated for ru.wiki - I'll post the patch later

----------------------------------------------------------------------

Comment By: xqt (xqt)
Date: 2011-07-10 18:36

Message:
maybe fixed in r9362 (update from rewrite)

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=3115233&group_id=93107



More information about the Pywikipedia-bugs mailing list