author | Aurelien Campeas <aurelien.campeas@logilab.fr> |
Tue, 02 Dec 2014 15:21:29 +0100 | |
changeset 11530 | 167f415e023e |
parent 11529 | de8bc3697cfa |
child 11531 | 16cb60d6424d |
--- a/pyramid_cubicweb/defaults.py Mon Dec 08 20:38:32 2014 +0100 +++ b/pyramid_cubicweb/defaults.py Tue Dec 02 15:21:29 2014 +0100 @@ -25,7 +25,7 @@ request, principal, **kw) try: repo = request.registry['cubicweb.repository'] - with repo.internal_session() as cnx: + with repo.internal_cnx() as cnx: cnx.execute( "SET U last_login_time %(now)s WHERE U eid %(user)s", { 'now': datetime.datetime.now(),