Revision: 3903 Author: wikipedian Date: 2007-07-26 18:23:37 +0000 (Thu, 26 Jul 2007)
Log Message: ----------- bot lists: fixed error message disabled check on the simple english wikipedia
Modified Paths: -------------- trunk/pywikipedia/login.py
Modified: trunk/pywikipedia/login.py =================================================================== --- trunk/pywikipedia/login.py 2007-07-26 16:48:49 UTC (rev 3902) +++ trunk/pywikipedia/login.py 2007-07-26 18:23:37 UTC (rev 3903) @@ -53,7 +53,9 @@ botList = { 'wikipedia': { 'en': u'Wikipedia:Registered bots', - 'simple': u'Wikipedia:Bots', + # Disabled because they are now using a template system which + # we can't check with our current code. + #'simple': u'Wikipedia:Bots', }, 'gentoo': { 'en': u'Help:Bots', @@ -219,7 +221,7 @@ wikipedia.output(u"Logging in to %s as %s" % (self.site, self.username)) # Ensure bot policy on the English Wikipedia if not self.botAllowed(): - wikipedia.output(u'*** Your username is not listed on [[Wikipedia:Bots]].\n*** Please make sure you are allowed to use the robot before actually using it!') + wikipedia.output(u'*** Your username is not listed on [[%s]].\n*** Please make sure you are allowed to use the robot before actually using it!' % botList[self.site.family.name][self.site.lang]) cookiedata = self.getCookie() if cookiedata: self.storecookiedata(cookiedata)