Mercurial > libervia-web
diff src/pages/g/page_meta.py @ 1100:5976dcd42591
pages (g): use server's connect method to connect instead of bridge, this way normal Libervia workflow is used, and session attributes are initialised.
author | Goffi <goffi@goffi.org> |
---|---|
date | Fri, 01 Jun 2018 18:31:29 +0200 |
parents | 01e95ec9df9e |
children | cdd389ef97bc |
line wrap: on
line diff
--- a/src/pages/g/page_meta.py Fri Jun 01 16:00:48 2018 +0200 +++ b/src/pages/g/page_meta.py Fri Jun 01 18:31:29 2018 +0200 @@ -61,7 +61,7 @@ profile = data['guest_profile'] password = data['password'] try: - yield self.host.bridgeCall("connect", profile, password, {}) + yield self.host.connect(request, profile, password) except Exception as e: log.warning(_(u"Can't connect profile: {msg}").format( msg=e)) @@ -71,7 +71,6 @@ log.info(_(u"guest session started, connected with profile [{profile}]".format( profile = profile))) - sat_session.profile = profile # we copy data useful in templates template_data = request.template_data