Revision: 7157 Author: alexsh Date: 2009-08-16 14:16:51 +0000 (Sun, 16 Aug 2009)
Log Message: ----------- Fix:Page._putPage() getagain in badtoken
Modified Paths: -------------- trunk/pywikipedia/wikipedia.py
Modified: trunk/pywikipedia/wikipedia.py =================================================================== --- trunk/pywikipedia/wikipedia.py 2009-08-16 14:14:15 UTC (rev 7156) +++ trunk/pywikipedia/wikipedia.py 2009-08-16 14:16:51 UTC (rev 7157) @@ -1653,7 +1653,7 @@ else: # We might have been using an outdated token output(u"Edit token has failed. Retrying.") - return self._putPage(text, comment, watchArticle, minorEdit, newPage, token=self.site().getToken(sysop = sysop), newToken = True, sysop = sysop) + return self._putPage(text, comment, watchArticle, minorEdit, newPage, token=self.site().getToken(sysop = sysop, getagain = True), newToken = True, sysop = sysop) # I think the error message title was changed from "Wikimedia Error" # to "Wikipedia has a problem", but I'm not sure. Maybe we could # just check for HTTP Status 500 (Internal Server Error)?