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