Bugs item #3059367, was opened at 2010-09-04 16:53 Message generated for change (Comment added) made by xqt You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=603138&aid=3059367...
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: Open Resolution: None
Priority: 5 Private: No Submitted By: JAn (jandudik) Assigned to: xqt (xqt) Summary: Persons
Initial Comment: There is bug in adding category with parameter -person: Bot adds category duplicate http://cs.wikipedia.org/w/index.php?title=Lucie_B%C3%ADl%C3%A1&diff=prev... http://cs.wikipedia.org/w/index.php?title=Lucie_Borhyov%C3%A1&diff=prev&...
And there might be better to add {{DEFAULTSORT:Surname, Name}}, [[Category:Foo]] instead of [[Category:Foo|Surname, Name]]
----------------------------------------------------------------------
Comment By: xqt (xqt)
Date: 2010-09-08 14:33
Message: Forget my last comment. This bug is still remaining with -person option. Working on a fix...
----------------------------------------------------------------------
Comment By: xqt (xqt) Date: 2010-09-08 14:19
Message: Could you please check whether this works with the new category release 8494? Debugging it is a mess. It seems title[:1].capitalize() didn't work whereas title[:1].upper() does it. I also changed the behaviour for change confirmation thus you'll first see the diff.
I've tested your problem on my test page at de-wiki with python 2.7 and it worked for me:
import wikipedia as wp import category as cat page = wp.Page('de','user:xqt/Test')
bot = cat.AddCategory([page], sort_by_last_name=True)
bot.run()
Category to add (do not give namespace): ženy
Benutzer:Xqt/Test <<<
Current categories: * Kategorie:Ženy * Kategorie:Narození 1978 * Kategorie:Žijící lidé * Kategorie:TV Nova * Kategorie:Ceští moderátori * Kategorie:Ženy Benutzer:Xqt/Test is already in Kategorie:Ženy. 1 page(s) processed.
----------------------------------------------------------------------
You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=603138&aid=3059367...
pywikipedia-bugs@lists.wikimedia.org