Bugs item #3534644, was opened at 2012-06-12 10:01 Message generated for change (Tracker Item Submitted) made by xqt You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=603138&aid=3534644...
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: rewrite Group: None Status: Open Resolution: None Priority: 5 Private: No Submitted By: xqt (xqt) Assigned to: Russell Blau (russblau) Summary: Invalid invalid title error
Initial Comment: runnig cosmetic_changes (in -sumulate mode) for the page pdc:Denemarrick causes an invalid title error by matching that title: [[Flag of {{PAGENAME}}|Official Faahne]] because "{" is marked as not a valid char inside a title. But it is valid inside a mediawiki page.
Traceback:
Denemarrick <<<
Traceback (most recent call last): File "C:\Pywikipedia\rw\pwb.py", line 42, in <module> execfile(sys.argv[0]) File "C:\Pywikipedia\rw\scripts\cosmetic_changes.py", line 935, in <module> main() File "C:\Pywikipedia\rw\scripts\cosmetic_changes.py", line 931, in main bot.run() File "C:\Pywikipedia\rw\scripts\cosmetic_changes.py", line 883, in run self.treat(page) File "C:\Pywikipedia\rw\scripts\cosmetic_changes.py", line 848, in treat changedText = ccToolkit.change(page.get()) File "C:\Pywikipedia\rw\scripts\cosmetic_changes.py", line 179, in change text = self.cleanUpLinks(text) File "C:\Pywikipedia\rw\scripts\cosmetic_changes.py", line 536, in cleanUpLink s 'startspace']) File "C:\Pywikipedia\rw\pywikibot\textlib.py", line 153, in replaceExcept replacement = new(match) File "C:\Pywikipedia\rw\scripts\cosmetic_changes.py", line 433, in handleOneLi nk if page.namespace() == 0: File "C:\Pywikipedia\rw\pywikibot\page.py", line 101, in namespace return self._link.namespace File "C:\Pywikipedia\rw\pywikibot\page.py", line 2429, in namespace self.parse() File "C:\Pywikipedia\rw\pywikibot\page.py", line 2380, in parse u"Invalid title: contains illegal char(s) '%s'" % m.group(0)) pywikibot.exceptions.Error: Invalid title: contains illegal char(s) '{'
c:\Pywikipedia\rw>
version:
c:\Pywikipedia\rw>pwb.py version Configuration variable 'use_diskcache' is defined but unknown. Misspelled? Configuration variable 'notify_unflagged_bot' is defined but unknown. Misspelled ? Pywikibot branches/rewrite/ (r10352, 2012/06/12, 16:46:30) Python 2.7.3 (default, Apr 10 2012, 23:24:47) [MSC v.1500 64 bit (AMD64)] unicode test: ok
c:\Pywikipedia\rw>
----------------------------------------------------------------------
You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=603138&aid=3534644...