Last modified: 2014-01-26 17:00:07 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T62278, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 60278 - Can't switch to admin account to delete while using bot account
Can't switch to admin account to delete while using bot account
Status: RESOLVED FIXED
Product: Pywikibot
Classification: Unclassified
General (Other open bugs)
core-(2.0)
All All
: Unprioritized normal
: ---
Assigned To: Pywikipedia bugs
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2014-01-21 06:57 UTC by Sorawee Porncharoenwase
Modified: 2014-01-26 17:00 UTC (History)
1 user (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Sorawee Porncharoenwase 2014-01-21 06:57:55 UTC
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.
Comment 1 xqt 2014-01-26 17:00:07 UTC
see gerrit:109339

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links