Mercurial > libervia-web
diff src/pages/g/page_meta.py @ 1098:01e95ec9df9e
server, pages: fixed blocking calls to bridge by using bridgeCall instead
author | Goffi <goffi@goffi.org> |
---|---|
date | Fri, 01 Jun 2018 15:09:19 +0200 |
parents | 5cdd77190a3b |
children | 5976dcd42591 |
line wrap: on
line diff
--- a/src/pages/g/page_meta.py Fri Jun 01 15:07:06 2018 +0200 +++ b/src/pages/g/page_meta.py Fri Jun 01 15:09:19 2018 +0200 @@ -46,7 +46,7 @@ if current_id is None: log.debug(_(u"checking invitation [{id}]").format(id=invitation_id)) try: - data = yield self.host.bridge.invitationGet(invitation_id) + data = yield self.host.bridgeCall("invitationGet", invitation_id) except Exception: self.pageError(request, C.HTTP_UNAUTHORIZED) else: @@ -61,7 +61,7 @@ profile = data['guest_profile'] password = data['password'] try: - yield self.host.bridge.connect(profile, password, {}) + yield self.host.bridgeCall("connect", profile, password, {}) except Exception as e: log.warning(_(u"Can't connect profile: {msg}").format( msg=e))