web/application.py
changeset 5174 78438ad513ca
parent 5000 f1a10b41417a
child 5223 6abd6e3599f4
equal deleted inserted replaced
5173:73760bbb66bd 5174:78438ad513ca
   188         return session
   188         return session
   189 
   189 
   190     def _update_last_login_time(self, req):
   190     def _update_last_login_time(self, req):
   191         try:
   191         try:
   192             req.execute('SET X last_login_time NOW WHERE X eid %(x)s',
   192             req.execute('SET X last_login_time NOW WHERE X eid %(x)s',
   193                         {'x' : req.user.eid}, 'x')
   193                         {'x' : req.user.eid})
   194             req.cnx.commit()
   194             req.cnx.commit()
   195         except (RepositoryError, Unauthorized):
   195         except (RepositoryError, Unauthorized):
   196             # ldap user are not writeable for instance
   196             # ldap user are not writeable for instance
   197             req.cnx.rollback()
   197             req.cnx.rollback()
   198         except:
   198         except: