[Pywikipedia-l] [ pywikipediabot-Bugs-1844339 ] putPage AttributeError by using authenticate
SourceForge.net
noreply at sourceforge.net
Tue Dec 4 20:07:32 UTC 2007
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&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: 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&group_id=93107
More information about the Pywikipedia-l
mailing list