89 # * in http auth mode, url will be ignored |
89 # * in http auth mode, url will be ignored |
90 # * in cookie mode redirecting to the index view is enough : either |
90 # * in cookie mode redirecting to the index view is enough : either |
91 # anonymous connection is allowed and the page will be displayed or |
91 # anonymous connection is allowed and the page will be displayed or |
92 # we'll be redirected to the login form |
92 # we'll be redirected to the login form |
93 msg = self._cw._('you have been logged out') |
93 msg = self._cw._('you have been logged out') |
94 if self._cw.https: |
94 # force base_url so on dual http/https configuration, we generate an url |
95 # XXX hack to generate an url on the http version of the site |
95 # on the http version of the site |
96 self._cw._base_url = self._cw.vreg.config['base-url'] |
96 return self._cw.build_url('view', vid='index', __message=msg, |
97 self._cw.https = False |
97 base_url=self._cw.vreg.config['base-url']) |
98 return self._cw.build_url('view', vid='index', __message=msg) |
98 |
99 |
99 |
100 class ViewController(Controller): |
100 class ViewController(Controller): |
101 """standard entry point : |
101 """standard entry point : |
102 - build result set |
102 - build result set |
103 - select and call main template |
103 - select and call main template |