diff src/pages/merge-requests/edit/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 01538d8a77be
children cdd389ef97bc
line wrap: on
line diff
--- a/src/pages/merge-requests/edit/page_meta.py	Fri Jun 01 15:07:06 2018 +0200
+++ b/src/pages/merge-requests/edit/page_meta.py	Fri Jun 01 15:09:19 2018 +0200
@@ -33,7 +33,7 @@
 
 
     ignore = ('publisher', 'author', 'author_jid', 'author_email', 'created', 'updated', 'comments_uri', 'request_data', 'type')
-    tickets = yield self.host.bridge.mergeRequestsGet(service.full() if service else u'', node, C.NO_LIMIT, [ticket_id], '', {}, profile)
+    tickets = yield self.host.bridgeCall("mergeRequestsGet", service.full() if service else u'', node, C.NO_LIMIT, [ticket_id], '', {}, profile)
     ticket = [template_xmlui.create(self.host, x, ignore=ignore) for x in tickets[0]][0]
 
     try:
@@ -58,15 +58,15 @@
     except (KeyError, IndexError):
         pass
     profile = self.getProfile(request)
-    yield self.host.bridge.mergeRequestSet(service.full(),
-                                            node,
-                                            u'',
-                                            u'auto',
-                                            posted_data,
-                                            u'',
-                                            ticket_id,
-                                            {'update': C.BOOL_TRUE},
-                                            profile)
+    yield self.host.bridgeCall("mergeRequestSet", service.full(),
+                               node,
+                               u'',
+                               u'auto',
+                               posted_data,
+                               u'',
+                               ticket_id,
+                               {'update': C.BOOL_TRUE},
+                               profile)
     # we don't want to redirect to edit page on success, but to tickets list
     data['post_redirect_page'] = (self.getPageByName(u'merge-requests'),
                                   service.full(),