http://www.mediawiki.org/wiki/Special:Code/pywikipedia/11350
Revision: 11350 Author: xqt Date: 2013-04-07 09:29:26 +0000 (Sun, 07 Apr 2013) Log Message: ----------- notify user via messagebox per default
Modified Paths: -------------- trunk/pywikipedia/add_text.py
Modified: trunk/pywikipedia/add_text.py =================================================================== --- trunk/pywikipedia/add_text.py 2013-04-06 15:12:48 UTC (rev 11349) +++ trunk/pywikipedia/add_text.py 2013-04-07 09:29:26 UTC (rev 11350) @@ -294,9 +294,11 @@ if always or choice == 'y': try: if always: - page.put(newtext, summary) + page.put(newtext, summary, + minorEdit=page.namespace() != 3) else: - page.put_async(newtext, summary) + page.put_async(newtext, summary, + minorEdit=page.namespace() != 3) except pywikibot.EditConflict: pywikibot.output(u'Edit conflict! skip!') return (False, False, always)
pywikipedia-svn@lists.wikimedia.org