Revision: 7074 Author: russblau Date: 2009-07-17 13:21:49 +0000 (Fri, 17 Jul 2009)
Log Message: ----------- bug in botMayEdit(): 'username' was undefined
Modified Paths: -------------- branches/rewrite/pywikibot/page.py
Modified: branches/rewrite/pywikibot/page.py =================================================================== --- branches/rewrite/pywikibot/page.py 2009-07-17 11:03:57 UTC (rev 7073) +++ branches/rewrite/pywikibot/page.py 2009-07-17 13:21:49 UTC (rev 7074) @@ -640,6 +640,7 @@ """ # TODO: move this to Site object? if config.ignore_bot_templates: #Check the "master ignore switch" return True + username = self.site().user() try: templates = self.templatesWithParams(); except (pywikibot.NoPage,