web/views/basecontrollers.py
branchstable
changeset 8485 8de41063d629
parent 8444 7a861620f64f
child 8487 017af22e7678
equal deleted inserted replaced
8484:4c1efb5bde0a 8485:8de41063d629
    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         raise Redirect(path)
    94         # redirect expect an url, not a path. Also path may contains a query
       
    95         # string, hence should not be given to _cw.build_url()
       
    96         raise Redirect(self._cw.base_url() + path)
    95 
    97 
    96 
    98 
    97 class LogoutController(Controller):
    99 class LogoutController(Controller):
    98     __regid__ = 'logout'
   100     __regid__ = 'logout'
    99 
   101