https://bugzilla.wikimedia.org/show_bug.cgi?id=55306
Web browser: --- Bug ID: 55306 Summary: Problems with revdelete Product: Pywikibot Version: unspecified Hardware: All OS: All Status: NEW Severity: normal Priority: Unprioritized Component: General Assignee: Pywikipedia-bugs@lists.wikimedia.org Reporter: legoktm.wikipedia@gmail.com Classification: Unclassified Mobile Platform: ---
Originally from: http://sourceforge.net/p/pywikipediabot/bugs/937/ Reported by: platonides Created on: 2009-05-11 22:26:00 Subject: Problems with revdelete Original description: Wikipedia is now using revdelete in everyday use. This means that content, editor or summaries may be selectively deleted. pywikipediabot isn't prepared to handle that, and will break throwing an exception, even if that field isn't needed for the specific action being done. I encountered it with instances of <contributor deleted="deleted"/> but will likely happen with all deleted fields.
If you use -page: generator where it has the contributor deleted, it'll throw from xmlreader.py, line 180, in endElement text, self.username, AttributeError: MediaWikiXmlHandler instance has no attribute 'username' MediaWikiXmlHandler instance has no attribute 'username'
If you were using a -xml: generator, it's much more cyptic: xmlreader.py", line 64, in __init__ self.username = username.strip() AttributeError: 'bool' object has no attribute 'strip' 'bool' object has no attribute 'strip'
Using r6870.
https://bugzilla.wikimedia.org/show_bug.cgi?id=55306
--- Comment #1 from Kunal Mehta (Legoktm) legoktm.wikipedia@gmail.com --- Example of XML failing from wikipedia
https://bugzilla.wikimedia.org/show_bug.cgi?id=55306
Kunal Mehta (Legoktm) legoktm.wikipedia@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- See Also| |https://sourceforge.net/p/p | |ywikipediabot/bugs/937
https://bugzilla.wikimedia.org/show_bug.cgi?id=55306
John Mark Vandenberg jayvdb@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Keywords| |testme CC| |jayvdb@gmail.com, | |Platonides@gmail.com Version|unspecified |compat (1.0)
--- Comment #2 from John Mark Vandenberg jayvdb@gmail.com --- Problem reported appears to have been while using 'compat' / 'trunk', but it needs to be retested with core.
pywikipedia-bugs@lists.wikimedia.org