equal
deleted
inserted
replaced
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: |