https://bugzilla.wikimedia.org/show_bug.cgi?id=55315
Web browser: ---
Bug ID: 55315
Summary: category.py breaks articles with includeonly and
noinclude
Product: Pywikibot
Version: unspecified
Hardware: All
OS: All
Status: NEW
Severity: normal
Priority: Unprioritized
Component: General
Assignee: Pywikipedia-bugs(a)lists.wikimedia.org
Reporter: legoktm.wikipedia(a)gmail.com
Classification: Unclassified
Mobile Platform: ---
Originally from:
http://sourceforge.net/p/pywikipediabot/bugs/822/
Reported by: djbarrett
Created on: 2008-11-19 19:07:20
Subject: category.py breaks articles with includeonly and noinclude
Original description:
This is a DEADLY bug that wrecks wiki structure.
I ran "python category.py" to rename one category to another. For articles
containing <includeonly> and <noinclude> statements,
pywikipedia
made incorrect changes. When renaming category B to category C, the text:
<includeonly>\[\[Category:A\]\]</includeonly><noinclude>\[\[Category:B\]\]</noinclude>
becomes:
<includeonly></includeonly><noinclude></noinclude>
\[\[Category:C\]\]
In other words, it completely removed category A, and when renaming category B,
placed the new category tag outside the noinclude tags.
This wrecked a complicated category structure.
$ python version.py
Pywikipedia \[http\] trunk/pywikipedia \(r6088, Nov 12 2008, 11:19:15\)
Python 2.4.3 \(\#1, May 24 2008, 13:57:05\)
\[GCC 4.1.2 20070626 \(Red Hat 4.1.2-14\)\]
--
You are receiving this mail because:
You are the assignee for the bug.