Last modified: 2014-08-08 08:47: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 T67196, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 65196 - Cannot be logged in as user and sysop at the same time
Cannot be logged in as user and sysop at the same time
Status: NEW
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-05-11 14:54 UTC by Merlijn van Deen (test)
Modified: 2014-08-08 08:47 UTC (History)
1 user (show)

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


Attachments

Description Merlijn van Deen (test) 2014-05-11 14:54:24 UTC
e.g.

user-config.py:

usernames['wikipedia']['nl'] = 'valhallasw-botje'
sysopnames['wikipedia']['nl'] = 'valhallasw'

test.py
import pywikibot
s = pywikibot.Site()
s.login(False) # as user, asks for password
s.login(True)  # as sysop, asks for password, *overwrites* cookies (!)
s.login(False) # as users, asks for password *again*

It should be possible to switch between sysop and bot accounts in a script without requiring the user to enter the password every time

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


Navigation
Links