Mpaa created this task.
Mpaa added a project: Pywikibot-core.
Herald added subscribers: pywikibot-bugs-list, Aklapper.

TASK DESCRIPTION

Bot.run() checks if it automatically updates the site before run().
Doc says: To use this functionality, don't set self.site in init, and use page.site in treat().
Otherwise the following warning is raised:
'%s.init set the Bot.site property; this is only needed when the Bot accesses many sites.'

What if bot.init() needs to know the site to set some other parameters?
Either the warning is raised, or Bot.run() needs to be overridden,
E.g. in unusedfiles.py:
self.template_image = i18n.translate(self.site, template_to_the_image)


TASK DETAIL
https://phabricator.wikimedia.org/T146808

EMAIL PREFERENCES
https://phabricator.wikimedia.org/settings/panel/emailpreferences/

To: Mpaa
Cc: Aklapper, pywikibot-bugs-list, Mpaa, MayS, Mdupont, JJMC89, jayvdb, Alchimista
_______________________________________________
pywikibot-bugs mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs

Reply via email to