http://www.mediawiki.org/wiki/Special:Code/pywikipedia/9694
Revision: 9694 Author: xqt Date: 2011-10-30 16:53:18 +0000 (Sun, 30 Oct 2011) Log Message: ----------- update from rewrite r9693
Modified Paths: -------------- trunk/pywikipedia/basic.py
Modified: trunk/pywikipedia/basic.py =================================================================== --- trunk/pywikipedia/basic.py 2011-10-30 16:52:48 UTC (rev 9693) +++ trunk/pywikipedia/basic.py 2011-10-30 16:53:18 UTC (rev 9694) @@ -93,7 +93,8 @@ return text return None
- def save(self, text, page, comment, minorEdit=True, botflag=True): + def save(self, text, page, comment=self.summary, minorEdit=True, + botflag=True): # only save if something was changed if text != page.get(): # Show the title of the page we're working on. @@ -110,8 +111,8 @@ if choice == 'y': try: # Save the page - page.put(text, comment=comment, - minorEdit=minorEdit, botflag=botflag) + page.put(text, comment=comment, minorEdit=minorEdit, + botflag=botflag) except pywikibot.LockedPage: pywikibot.output(u"Page %s is locked; skipping." % page.title(asLink=True))
pywikipedia-svn@lists.wikimedia.org