Railfail536 created this task. Railfail536 added projects: Pywikibot-redirect.py, Pywikibot. Restricted Application added subscribers: pywikibot-bugs-list, Aklapper.
TASK DESCRIPTION I have found issue with detecting sysop rights while trying to delete broken redirects <https://jakwytresowacsmoka.fandom.com/wiki/Special:Brokenredirects> without `sysopnames` defined in config file on Jak Wytresować Smoka Wiki <https://jakwytresowacsmoka.fandom.com/> (Fandom). My environment -------------- - Windows 10 Pro - Python 3.8.1 - Pywikibot `git cloned` from GitHub repo as of December 26, 2019 Config ------ # -*- coding: utf-8 -*- family = 'jws' mylang = 'pl' password_file = 'user-password.py' usernames['jws']['pl'] = u'RailBot' console_encoding = 'utf-8' Reproduction ------------ - Use config above for family file called `jws_family.py` generated automatically for `https://jakwytresowacsmoka.fandom.com/` (MW 1.19.24) - Sign in using `python pwb.py login -sysop` to bot account with sysop permissions - Run `python pwb.py redirect broken -delete -always` - Bot is reading pages from special page but escaping all of them - All `sysopnames['jws']['pl'] = u'RailBot'` to `user-config.py` - `python pwb.py login -logout` and log in again - Get warning message about deprecated `sysopnames` use - Run `redirect.py` again as stated in 3rd point - Everything works fine; bot is deleting broken redirects I don't know if it's really an issue with software rather than with my configuration but if warning message encourages me to avoid using `sysopnames` I shouldn't be forced to use it in order to run script at all. TASK DETAIL https://phabricator.wikimedia.org/T241879 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: Railfail536 Cc: Aklapper, Railfail536, pywikibot-bugs-list, Zkhalido, Viztor, Wenyi, Tbscho, MayS, Mdupont, JJMC89, Dvorapa, Altostratus, Avicennasis, mys_721tx, Xqt, jayvdb, Dalba, Masti, Alchimista, Rxy
_______________________________________________ pywikibot-bugs mailing list pywikibot-bugs@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs