Revision: 7116 Author: alexsh Date: 2009-08-06 07:15:41 +0000 (Thu, 06 Aug 2009)
Log Message: ----------- query.GetData(): Fix postData cookie cannot use sysop data
Modified Paths: -------------- trunk/pywikipedia/query.py
Modified: trunk/pywikipedia/query.py =================================================================== --- trunk/pywikipedia/query.py 2009-08-06 06:00:28 UTC (rev 7115) +++ trunk/pywikipedia/query.py 2009-08-06 07:15:41 UTC (rev 7116) @@ -81,7 +81,7 @@ try: jsontext = "Nothing received" if params['action'] in postAC: - res, jsontext = site.postData(path, urllib.urlencode(params.items()), cookies=site.cookies(), sysop=sysop) + res, jsontext = site.postData(path, urllib.urlencode(params.items()), cookies=site.cookies(sysop=sysop), sysop=sysop) else: if back_response: res, jsontext = site.getUrl( path, retry=True, data=data, sysop=sysop, back_response=True)
pywikipedia-svn@lists.wikimedia.org