Revision: 7375 Author: alexsh Date: 2009-10-05 16:53:45 +0000 (Mon, 05 Oct 2009)
Log Message: ----------- _load(): API getinfo limit down to 1.12
Modified Paths: -------------- trunk/pywikipedia/wikipedia.py
Modified: trunk/pywikipedia/wikipedia.py =================================================================== --- trunk/pywikipedia/wikipedia.py 2009-10-05 16:52:20 UTC (rev 7374) +++ trunk/pywikipedia/wikipedia.py 2009-10-05 16:53:45 UTC (rev 7375) @@ -1687,7 +1687,7 @@ # just check for HTTP Status 500 (Internal Server Error)? else: output("Unknown Error. API Error code:%s" % data['error']['code'] ) - output("Information:%s" %data['error']['info']) + output("Information:%s" % data['error']['info']) else: if data['edit']['result'] == u"Success": # @@ -1696,7 +1696,7 @@ # if the page update is successed, we need to return code 302 for cheat script who # using status code # - return 302, response.reason, data + return 302, response.reason, data['edit']
solve = self.site().solveCaptcha(data) if solve: @@ -5510,7 +5510,7 @@ # Get data # API Userinfo is available from version 1.11 # preferencetoken available from 1.14 - if config.use_api and self.versionnumber() >= 14: + if config.use_api and self.versionnumber() >= 12: #Query userinfo params = { 'action': 'query',
pywikipedia-svn@lists.wikimedia.org