Bugs item #3606741, was opened at 2013-03-04 00:36 Message generated for change (Tracker Item Submitted) made by nobody You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=603138&aid=3606741...
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: None Group: None Status: Open Resolution: None Priority: 5 Private: No Submitted By: Nobody/Anonymous (nobody) Assigned to: Nobody/Anonymous (nobody) Summary: Wikidata: fail to .setitem()
Initial Comment: I failed to setitem when using Page object to create DataPage. For example
page = pywikibot.Page(site, u"xxx") dataPage = pywikibot.DataPage(page) datapage.setitem(u"xxx", items={xxx})
produces an error, while
dataPage = pywikibot.DataPage(1234) datapage.setitem(u"xxx", items={xxx})
works correctly.
Pywikipedia trunk/pywikipedia/ (r11176, 2013/03/03, 17:50:39, ok) Python 2.7.3 (default, Sep 26 2012, 21:53:58) [GCC 4.7.2] config-settings: use_api = True use_api_login = True unicode test: ok
----------------------------------------------------------------------
You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=603138&aid=3606741...