Mercurial > libervia-web
diff src/pages/tickets/view/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 | 7d5633ccbaf2 |
children | cdd389ef97bc |
line wrap: on
line diff
--- a/src/pages/tickets/view/page_meta.py Fri Jun 01 15:07:06 2018 +0200 +++ b/src/pages/tickets/view/page_meta.py Fri Jun 01 15:09:19 2018 +0200 @@ -40,7 +40,7 @@ if profile is None: profile = C.SERVICE_PROFILE - tickets = yield self.host.bridge.ticketsGet(service.full() if service else u'', node, C.NO_LIMIT, [ticket_id], '', {'labels_as_list': C.BOOL_TRUE}, profile) + tickets = yield self.host.bridgeCall("ticketsGet", service.full() if service else u'', node, C.NO_LIMIT, [ticket_id], '', {'labels_as_list': C.BOOL_TRUE}, profile) ticket = [template_xmlui.create(self.host, x) for x in tickets[0]][0] template_data[u'item'] = ticket comments_uri = ticket.widgets['comments_uri'].value @@ -48,12 +48,12 @@ uri_data = uri.parseXMPPUri(comments_uri) template_data['comments_node'] = comments_node = uri_data['node'] template_data['comments_service'] = comments_service = uri_data['path'] - comments = yield self.host.bridge.mbGet(comments_service, - comments_node, - C.NO_LIMIT, - [], - {}, - profile) + comments = yield self.host.bridgeCall("mbGet", comments_service, + comments_node, + C.NO_LIMIT, + [], + {}, + profile) template_data[u'comments'] = data_objects.BlogItems(comments) template_data[u'login_url'] = self.getPageRedirectURL(request)