Revision: 6399 Author: misza13 Date: 2009-02-21 16:51:14 +0000 (Sat, 21 Feb 2009)
Log Message: ----------- Allow forced use of sysop account when saving pages (patch by Happy-melon; SF bug #2477551).
Modified Paths: -------------- trunk/pywikipedia/wikipedia.py
Modified: trunk/pywikipedia/wikipedia.py =================================================================== --- trunk/pywikipedia/wikipedia.py 2009-02-21 13:55:07 UTC (rev 6398) +++ trunk/pywikipedia/wikipedia.py 2009-02-21 16:51:14 UTC (rev 6399) @@ -1355,7 +1355,7 @@ force, callback))
def put(self, newtext, comment=None, watchArticle=None, minorEdit=True, - force=False): + force=False, sysop=False): """Save the page with the contents of the first argument as the text.
Optional parameters: @@ -1371,7 +1371,7 @@ self.get() except: pass - sysop = self._getActionUser(action = 'edit', restriction = self.editRestriction, sysop = False) + sysop = self._getActionUser(action = 'edit', restriction = self.editRestriction, sysop = sysop) username = self.site().loggedInAs()
# Check blocks
pywikipedia-l@lists.wikimedia.org