Xqt created this task. Xqt added projects: Pywikibot, good first task. Restricted Application added subscribers: pywikibot-bugs-list, Aklapper.
TASK DESCRIPTION With rPWBCc2a4f9e <https://phabricator.wikimedia.org/rPWBCc2a4f9efa70070b29a97b6b6eecb575537ec2214> the bot option handler was improved. old behaviour ------------- each bot option must be accessed by `self.getOption()` method e.g. `self.getOption('always')` new behaviour ------------- Option can be accessed as attibute or via keyword, for example: - `self.opt.always` - `self.opt['always']` By the way `self.opt` gives a dict of all valid Options. This can be easily used for format string for example: `'Always option is {always}'.format_map(self.opt)` or `'Always option is {always}'.format(**self.opt)` scripts should be rewritten by using the new option handler to get the full advantage of - shorter and intuitive access to bot options - bot option as attribute - bot option as keyword item - bot options Access as dict What to do? ----------- - replace `getOption()` method by that way described above - replace `availableOptions` by `available_options` - replace `setOptions` by `set_options` TASK DETAIL https://phabricator.wikimedia.org/T264721 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: Xqt Cc: Aklapper, pywikibot-bugs-list, Xqt, Rohitgeddam, JohnsonLee01, SHEKH, Dijkstra, Khutuck, Soda, Chaytanya, Zkhalido, wiki-helenatxu, Viztor, Wenyi, Kieubinhtb, Tks4Fish, Mh-3110, Asad_Ali_Palijo, Lahi, Soteriaspace, JakeTheDeveloper, Tbscho, MayS, Mdupont, JJMC89, Dvorapa, xSavitar, Altostratus, Avicennasis, MuhammadShuaib, Tmalhotra, SimmeD, mys_721tx, jayvdb, Masti, Alchimista, Rxy
_______________________________________________ pywikibot-bugs mailing list [email protected] https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs
