Bugs item #1844339, was opened at 2007-12-04 21:07 Message generated for change (Comment added) made by jay-pi 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: 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: Jay-Pi (jay-pi) Date: 2007-12-10 14:19
Message: Logged In: YES user_id=1956655 Originator: NO
I'm sorry. I have no public Wiki for Testing at the moment, but our internal Wikis work with the fix displayed above.
----------------------------------------------------------------------
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...
pywikipedia-l@lists.wikimedia.org