http://www.mediawiki.org/wiki/Special:Code/pywikipedia/10745
Revision: 10745 Author: amir Date: 2012-11-20 13:03:05 +0000 (Tue, 20 Nov 2012) Log Message: ----------- a little fixes for r10590
Modified Paths: -------------- trunk/pywikipedia/query.py trunk/pywikipedia/wikipedia.py
Modified: trunk/pywikipedia/query.py =================================================================== --- trunk/pywikipedia/query.py 2012-11-20 12:53:32 UTC (rev 10744) +++ trunk/pywikipedia/query.py 2012-11-20 13:03:05 UTC (rev 10745) @@ -139,7 +139,7 @@ (('file', params['filename'].encode(site.encoding()), data['file']),), site.cookies(sysop=sysop) ) - elif params['action'] in postAC: + elif params['action'] in postAC or params['action'][:5]=='wbset': res, jsontext = site.postForm(path, params, sysop, site.cookies(sysop = sysop) ) else: if back_response:
Modified: trunk/pywikipedia/wikipedia.py =================================================================== --- trunk/pywikipedia/wikipedia.py 2012-11-20 12:53:32 UTC (rev 10744) +++ trunk/pywikipedia/wikipedia.py 2012-11-20 13:03:05 UTC (rev 10745) @@ -4131,7 +4131,7 @@ errorCode = data['error']['code'] else: if data['success'] == u"1": - return 302, response.msg, data['edit'] + return 302, response.msg, data['success'] return response.code, response.msg, data class ImagePage(Page): """A subclass of Page representing an image descriptor wiki page.
pywikipedia-svn@lists.wikimedia.org