http://www.mediawiki.org/wiki/Special:Code/pywikipedia/9785
Revision: 9785 Author: xqt Date: 2011-12-05 07:53:10 +0000 (Mon, 05 Dec 2011) Log Message: ----------- fix for r9694 (bug #3449372), update from trunk r9784
Modified Paths: -------------- branches/rewrite/scripts/basic.py
Modified: branches/rewrite/scripts/basic.py =================================================================== --- branches/rewrite/scripts/basic.py 2011-12-05 07:48:04 UTC (rev 9784) +++ branches/rewrite/scripts/basic.py 2011-12-05 07:53:10 UTC (rev 9785) @@ -93,8 +93,8 @@ return text return None
- def save(self, text, page, comment=self.summary, minor=True, - botflag=None): + def save(self, text, page, comment=None, minorEdit=True, + botflag=True): # only save if something was changed if text != page.get(): # Show the title of the page we're working on. @@ -112,8 +112,8 @@ try: page.text = text # Save the page - page.save(comment=comment, minor=minor, - botflag=botflag) + page.save(comment=comment or self.comment, + minor=minor, botflag=botflag) except pywikibot.LockedPage: pywikibot.output(u"Page %s is locked; skipping." % page.title(asLink=True))
pywikipedia-svn@lists.wikimedia.org