[Cubicweb] cw shell and user sessions

Aurélien Campéas aurelien.campeas at logilab.fr
Tue Jul 31 15:50:11 CEST 2012

Le 31/07/2012 15:36, Stéphane Bugat a écrit :
> Sorry for this hailstorm of questions, but you probably know that the summer is really a suitable time for development.
> So just a simple question: when using a cw shell session, is it possible to reconnect using another user login? I know it is possible in unitests, using the self.login() method of CubicWebTC, but it doesn't seem to be available in a shell session.
> Thanks in advance
> Stephane

You may want to try;

with session.hijack_user(someuser) as s:


More information about the Cubicweb mailing list