[Pywikipedia-l] [ pywikipediabot-Bugs-1844339 ] putPage AttributeError by using authenticate
SourceForge.net
noreply at sourceforge.net
Sun Dec 9 14:30:32 UTC 2007
Bugs item #1844339, was opened at 2007-12-04 21:07
Message generated for change (Comment added) made by cosoleto
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: Closed
>Resolution: Fixed
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: Francesco Cosoleto (cosoleto)
Date: 2007-12-09 15:30
Message:
Logged In: YES
user_id=181280
Originator: NO
Can anyone provide URL to test this feature?
----------------------------------------------------------------------
Comment By: Rotem Liss (rotemliss)
Date: 2007-12-09 14: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