web/views/sessions.py
changeset 9492 c7fc56eecd1a
parent 9015 65b8236e1bb4
child 9543 39f981482e34
equal deleted inserted replaced
9484:31f070752462 9492:c7fc56eecd1a
    93         # XXX: this should be in a post login hook in the repository, but there
    93         # XXX: this should be in a post login hook in the repository, but there
    94         #      we can't differentiate actual login of automatic session
    94         #      we can't differentiate actual login of automatic session
    95         #      reopening. Is it actually a problem?
    95         #      reopening. Is it actually a problem?
    96         if 'last_login_time' in req.vreg.schema:
    96         if 'last_login_time' in req.vreg.schema:
    97             self._update_last_login_time(req)
    97             self._update_last_login_time(req)
    98         req.set_message(req._('welcome %s !') % req.user.login)
    98         req.set_message(req._('welcome %s!') % req.user.login)
    99 
    99 
   100     def _update_last_login_time(self, req):
   100     def _update_last_login_time(self, req):
   101         # XXX should properly detect missing permission / non writeable source
   101         # XXX should properly detect missing permission / non writeable source
   102         # and avoid "except (RepositoryError, Unauthorized)" below
   102         # and avoid "except (RepositoryError, Unauthorized)" below
   103         try:
   103         try: