zhuyifei1999 created this task.
zhuyifei1999 added projects: Pywikibot-core, Pywikibot-General.
Herald added subscribers: pywikibot-bugs-list, Aklapper.

TASK DESCRIPTION

Currently the method expects the bot to be logged in, or otherwise it always returns True:

$ python /shared/pywikipedia/core/pwb.py shell -user:SignBot
Welcome to the Pywikibot interactive shell!
>>> site = pywikibot.Site(user="SignBot")
>>> page = pywikibot.Page(site, 'User_talk:CommonsDelinker/commands/Category_moves')
>>> page.botMayEdit()
True
>>> page.site.user()
>>> page.site.login()
Logging in to commons:commons as SignBot
>>> page.site.user()
'SignBot'
>>> page.botMayEdit()
False
>>>

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

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

To: zhuyifei1999
Cc: Aklapper, Pokefan95, pywikibot-bugs-list, zhuyifei1999, Magul, Tbscho, MayS, Mdupont, JJMC89, jayvdb, Dalba, Masti, Alchimista, Rxy
_______________________________________________
pywikibot-bugs mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs

Reply via email to