web/views/basecontrollers.py
changeset 8444 7a861620f64f
parent 8311 76a44a0d7f4b
child 8485 8de41063d629
equal deleted inserted replaced
8443:86fc11fb6f99 8444:7a861620f64f
    88     __regid__ = 'login'
    88     __regid__ = 'login'
    89     __select__ = ~anonymous_user()
    89     __select__ = ~anonymous_user()
    90 
    90 
    91     def publish(self, rset=None):
    91     def publish(self, rset=None):
    92         """log in the instance"""
    92         """log in the instance"""
    93         path = self._cw.form.get('postlogin_path')
    93         path = self._cw.form.get('postlogin_path', '.')
    94         if not path:
       
    95             path = '/'
       
    96         raise Redirect(path)
    94         raise Redirect(path)
    97 
    95 
    98 
    96 
    99 class LogoutController(Controller):
    97 class LogoutController(Controller):
   100     __regid__ = 'logout'
    98     __regid__ = 'logout'