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: [email protected]
          Reporter: [email protected]
    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.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to