Bugs item #1615700, was opened at 2006-12-14 14:03 Message generated for change (Comment added) made by tavernier You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=603138&aid=1615700...
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: None Group: None Status: Open Resolution: None Priority: 5 Private: No Submitted By: Purodha B Blissenbach (purodha) Assigned to: Nobody/Anonymous (nobody) Summary: "category.py move [-inplace]" ignores some instances
Initial Comment: I observed (very few) instances when the command:
python category.py ... move -inplace -from:... -to:...
did not catch all occurences of the -from category, so that ater the run it was not empty, since some pages belonging to it were not altered at all. I believe, replace.py did not find the category tag inside these pages.
I all such cases, the following was true, but I cannot tell, which of those (if any) is a trigger for replace.py's erroneous behaviour:
- "move -inplace" was used. - the category tag was formatted like "[[namespace:pagename|sortkey]]", with a non-empty sort key present. - the "[[namespace:" was neither "[[Category:", nor the default local name for the wiki/language (as present in $namespaceNames), but another name which can be found only in the $namespaceAliases of the wiki language.
(My *guess* is the latter being the cause)
There may have been cases when category.py did find and correctly replaced the category tag in pages despite the conditions above, but I am not aware of any.
----------------------------------------------------------------------
Comment By: Tavernier (tavernier) Date: 2008-01-27 05:48
Message: Logged In: YES user_id=1705732 Originator: NO
can you give links ? does the problem still occur ?
sometimes he don't catch the category because it's transcluded from a template.
----------------------------------------------------------------------
Comment By: Russell Blau (russblau) Date: 2007-11-21 16:13
Message: Logged In: YES user_id=855050 Originator: NO
I have made many revisions to the "replaceCategoryInPlace()" function since this bug was opened. If there is still a problem, please identify specific articles/sites that don't get moved correctly. If not, this bug can be closed.
----------------------------------------------------------------------
Comment By: Purodha B Blissenbach (purodha) Date: 2007-06-01 12:32
Message: Logged In: YES user_id=46450 Originator: YES
The sort key seems of no importance.
Here you can see that there are three ways to write "Category" in the Wikipedia of Ripuarian languages: http://ksh.wikipedia.org/w/index.php?title=Betupper_%28Minsch%29&diff=pr... - the list of categories below the page shows only one name, and there is no wikilink of either at the end of the page.
I ran: python category.py move -inplace -from:Mynsch -to:Minsch
and it resonded: Checked for running processes. 1 processes currently running, including the current process. Getting [[Saachjrupp:Mynsch]]... Getting 1 pages from wikipedia:ksh... Getting a page to check if we're logged in on wikipedia:ksh Sleeping for 5.6 seconds, 2007-06-01 10:05:04 Changing page [[ksh:Betupper (Minsch)]] There are no subcategories in category Saachjrupp:Mynsch Dumping to category.dump.bz2, please wait...
Here is the change made by the bot: http://ksh.wikipedia.org/w/index.php?title=Betupper_%28Minsch%29&diff=ne...
1. It got the generic english name (category:Mynsch altered to Category:Minsch) and normalized it. 2. It got the default localized name (Saachjrupp:Mynsch) and normalized it to the generic english one. The default localized form is defined in $namespaceNames. 3. It did NOT catch the alternate localized name (Kategorie:Mynsch, left unchanged). BUT as you can see from the box at the bottom of the page, the page is now in two categories. I.e. Mediawiki understands the alternate localized form. Several alternate localized names can be defined in $namespaceAliases, see http://svn.wikimedia.org/viewvc/mediawiki/trunk/phase3/languages/messages/Me...
I believe, category.py does either not know of $namespaceAliases, or uses only one of the alternate names listed there.
----------------------------------------------------------------------
Comment By: siebrand (siebrand) Date: 2007-04-26 21:30
Message: Logged In: YES user_id=1107255 Originator: NO
Please let us know if this bug report is still applicable to the current code. If no response is given, the bug report will be closed one month from now. This message was added in an effort to reduce the number of open issues on this project. Siebrand
----------------------------------------------------------------------
Comment By: Cyde Weys (cydeweys) Date: 2007-01-28 21:26
Message: Logged In: YES user_id=1506848 Originator: NO
Hrmm, I'm confused. How many different ways are there to write "Category:"? I thought there was just one, whatever the language's wiki uses. Can you give a specific example of one that wasn't caught, but that should have been? Thanks.
----------------------------------------------------------------------
You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=603138&aid=1615700...
pywikipedia-l@lists.wikimedia.org