Bugs item #3610411, was opened at 2013-04-09 14:01 Message generated for change (Comment added) made by russblau You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=603138&aid=3610411...
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: Closed Resolution: Fixed
Priority: 5 Private: No Submitted By: Nullzer0 (nu11zer0) Assigned to: Russell Blau (russblau) Summary: a bug in the constructor of class Page
Initial Comment: The constructor of class Page can create a copy of the input object. The output contains all informations of the old object except info of revisions because of this line: self._revisions = {}
After I got the new object from that method, I called page.get(). The result is that the bot doesn't try to obtain the content because it already has "_revid" and other attribites. So it executes this command: self._revisions[self._revid].text and got the error since self._revisions is a blank dict. ---- Pywikibot branches/rewrite/ (r11366, 2013/04/08, 21:38:06, ok) Python 2.7.3 (default, Sep 26 2012, 21:53:58) [GCC 4.7.2] unicode test: ok
----------------------------------------------------------------------
Comment By: Russell Blau (russblau)
Date: 2013-05-09 10:59
Message: Fixed in rev 11518
----------------------------------------------------------------------
Comment By: Nullzer0 (nu11zer0) Date: 2013-04-10 00:48
Message: Sorry, I mistyped. I mean page.put(), not page.get(). Anyway I have sent the patch for this bug at #3610442. :)
----------------------------------------------------------------------
You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=603138&aid=3610411...
pywikipedia-bugs@lists.wikimedia.org