[Pywikipedia-l] [ pywikipediabot-Bugs-1844339 ] putPage AttributeError by using authenticate
SourceForge.net
noreply at sourceforge.net
Sun Dec 9 13:59:07 UTC 2007
Bugs item #1844339, was opened at 2007-12-04 22:07
Message generated for change (Comment added) made by rotemliss
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.
----------------------------------------------------------------------
Comment By: Rotem Liss (rotemliss)
Date: 2007-12-09 15:59
Message:
Logged In: YES
user_id=1327030
Originator: NO
Fixed in r4659.
----------------------------------------------------------------------
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