Revision: 4647 Author: rotem Date: 2007-12-09 11:40:15 +0000 (Sun, 09 Dec 2007)
Log Message: ----------- Avoid possible try to login as a sysop because of an edit restriction for autoconfirmed users.
Modified Paths: -------------- trunk/pywikipedia/wikipedia.py
Modified: trunk/pywikipedia/wikipedia.py =================================================================== --- trunk/pywikipedia/wikipedia.py 2007-12-09 11:35:19 UTC (rev 4646) +++ trunk/pywikipedia/wikipedia.py 2007-12-09 11:40:15 UTC (rev 4647) @@ -878,7 +878,7 @@ return True
try: - if self.editRestriction: + if self.editRestriction == 'sysop': self.site().forceLogin(sysop=True) else: self.site().forceLogin() @@ -1349,7 +1349,7 @@ * page is unprotected, and bot has an account for this site, or * page is protected, and bot has a sysop account for this site. """ - if self.editRestriction: + if self.editRestriction == 'sysop': userdict = config.sysopnames else: userdict = config.usernames
pywikipedia-l@lists.wikimedia.org