Bugs item #3610411, was opened at 2013-04-09 14:01
Message generated for change (Tracker Item Submitted) made by nu11zer0
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=3610411&group_id=93107

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: 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

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=3610411&group_id=93107

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

Reply via email to