https://bugzilla.wikimedia.org/show_bug.cgi?id=55260

--- Comment #5 from Kunal Mehta (Legoktm) <[email protected]> ---
Here is an even worse example.  Just like in the previous example, create
"Template:Pywikipedia test", but this time, make its contents:

Hello.&lt;noinclude&gt;\[\[Category:AABBCC\]\]&lt;/noinclude&gt;&lt;includeonly&gt;\[\[Category:EE\]\]&lt;/includeonly&gt;

Again, make the article "Test" contain:

\{\{pywikipedia test\}\}

Now run:

$ python category.py move -from:"AABBCC" -to:"DD"

In this case, "Template:Pywikipedia test" gets modified completely wrong to
become:

Hello.&lt;noinclude&gt;&lt;/noinclude&gt;&lt;includeonly&gt;
&lt;/includeonly&gt;

\[\[Category:DD\]\]

So the category tag for "EE" vanishes completely, and "DD" gets moved outside
of the "noinclude" tags.

Piwikipedia's output for this command was:

$ python category.py move -from:"AABBCC" -to:"DD"
Target page Category:DD already exists\!
Getting \[\[Category:AABBCC\]\]...
Getting 1 pages from vistawiki:en...
Sleeping for 5.8 seconds, 2010-09-15 11:28:53
Updating page \[\[Template:Pywikipedia test\]\] via API
Getting \[\[Category:AABBCC\]\]...

-- 
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
Pywikipedia-bugs mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/pywikipedia-bugs

Reply via email to