https://bugzilla.wikimedia.org/show_bug.cgi?id=60278
Web browser: --- Bug ID: 60278 Summary: Can't switch to admin account to delete while using bot account Product: Pywikibot Version: core (2.0) Hardware: All OS: All Status: UNCONFIRMED Severity: normal Priority: Unprioritized Component: General Assignee: Pywikipedia-bugs@lists.wikimedia.org Reporter: nullzero.free@gmail.com Classification: Unclassified Mobile Platform: ---
Suppose in my user-conf.py has
usernames[...][...] = mybot sysopnames[...][...] = myaccount
In the past, I couldnormally wrote pages as a bot, and when I wanted to delete a page, I just called page.delete(). Then, my bot and my account will be switched automatically.
[[gerrit:101613]] breaks this functionality. It uses self.site.logged_in(sysop=True) which always return false if the account which logged in at first is a bot. Note that self.site.logged_in also appears in redirect.py which now is not functional too (in the same topic). In my opinion, self.site.logged_in should never be used in any place because it does not consider other accounts in user-conf.py.
https://bugzilla.wikimedia.org/show_bug.cgi?id=60278
xqt info@gno.de changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED CC| |info@gno.de Resolution|--- |FIXED
--- Comment #1 from xqt info@gno.de --- see gerrit:109339
pywikipedia-bugs@lists.wikimedia.org