Bugs item #1844339, was opened at 2007-12-04 12:07 Message generated for change (Tracker Item Submitted) made by Item Submitter You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=603138&aid=1844339...
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: General Group: None Status: Open Resolution: None Priority: 5 Private: No Submitted By: Nobody/Anonymous (nobody) Assigned to: Nobody/Anonymous (nobody) Summary: putPage AttributeError by using authenticate
Initial Comment: AttributeError: 'dict' object has no attribute 'append'
This Error occurs in Function putPage of class Page in wikipedia.py.
Near: if self.site().hostname() in config.authenticate.keys():
Adding values to "predata" fails with append() because it's a dictionary.
predata.append(("Content-type","application/x-www-form-urlencoded")) predata.append(("User-agent", useragent))
using: predata["Content-type"] = "application/x-www-form-urlencoded" predata["User-agent"] = useragent
instead works fine.
----------------------------------------------------------------------
You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=603138&aid=1844339...
pywikipedia-l@lists.wikimedia.org