Xqt created this task.
Xqt added projects: Pywikibot, Pywikibot-login.py.
Restricted Application added subscribers: pywikibot-bugs-list, Aklapper.
TASK DESCRIPTION
**Feature summary**:
We can have multiple accounts with pywikibot but if a user is changed, the
session access authoization stored by cookies is lost and password is required
again. For example
D:\pwb\GIT\core>pwb shell
Welcome to the Pywikibot interactive shell!
>>> s1 = pywikibot.Site(user='Xqtest')
>>> s1.login()
WARNING: No user is logged in on site wikipedia:de
Password for user Xqtest on wikipedia:de (no characters will be shown):
Logging in to wikipedia:de as Xqtest
>>> exit()
D:\pwb\GIT\core>pwb shell
Welcome to the Pywikibot interactive shell!
>>> s1 = pywikibot.Site(user='Xqtest')
>>> s1.login()
>>> s2 = pywikibot.Site(user='Xqtools')
>>> s2.login()
Password for user Xqtools on wikipedia:de (no characters will be shown):
Logging in to wikipedia:de as Xqtools
>>> s1.logged_in()
True
>>> s2.logged_in()
True
>>> exit()
D:\pwb\GIT\core>pwb shell
Welcome to the Pywikibot interactive shell!
>>> s2 = pywikibot.Site(user='Xqtools')
>>> s1 = pywikibot.Site(user='Xqtest')
>>> s2.login()
>>> s1.login()
Password for user Xqtest on wikipedia:de (no characters will be shown):
Traceback (most recent call last):
The access authorization should be kept for each account.
**Use case(s)**:
Cookies in pywikibot.lwp are stored for multiple sites but for a single user
only. Either find a way to store cookies for multiple sites and users
simultaneously or use different files for each user.
**Benefits**:
Would be great to store access authoization for each acount. This would be
simplify running scripts with multiple accounts without having to give the
password over and over again.
TASK DETAIL
https://phabricator.wikimedia.org/T324000
EMAIL PREFERENCES
https://phabricator.wikimedia.org/settings/panel/emailpreferences/
To: Xqt
Cc: Tgr, Aklapper, binbot, Xqt, pywikibot-bugs-list, PotsdamLamb, Jyoo1011,
JohnsonLee01, SHEKH, Dijkstra, Khutuck, Zkhalido, Viztor, Wenyi, Tbscho, MayS,
Mdupont, JJMC89, Dvorapa, Altostratus, Avicennasis, mys_721tx, jayvdb, Masti,
Alchimista
_______________________________________________
pywikibot-bugs mailing list -- [email protected]
To unsubscribe send an email to [email protected]