Mercurial > libervia-web
diff src/pages/merge-requests/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 | f134c0ecb1d5 |
children | cdd389ef97bc |
line wrap: on
line diff
--- a/src/pages/merge-requests/view/page_meta.py Fri Jun 01 15:07:06 2018 +0200 +++ b/src/pages/merge-requests/view/page_meta.py Fri Jun 01 15:09:19 2018 +0200 @@ -39,14 +39,14 @@ if profile is None: profile = C.SERVICE_PROFILE - tickets, metadata, parsed_tickets = yield self.host.bridge.mergeRequestsGet(service.full() if service else u'', - node, - C.NO_LIMIT, - [ticket_id], - '', - {'parse': C.BOOL_TRUE, - 'labels_as_list': C.BOOL_TRUE}, - profile) + tickets, metadata, parsed_tickets = yield self.host.bridgeCall("mergeRequestsGet", service.full() if service else u'', + node, + C.NO_LIMIT, + [ticket_id], + '', + {'parse': C.BOOL_TRUE, + 'labels_as_list': C.BOOL_TRUE}, + profile) ticket = template_xmlui.create(self.host, tickets[0], ignore=['request_data', 'type']) template_data[u'item'] = ticket template_data['patches'] = parsed_tickets[0] @@ -55,12 +55,13 @@ 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)