diff src/pages/tickets/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/tickets/edit/page_meta.py	Fri Jun 01 15:07:06 2018 +0200
+++ b/src/pages/tickets/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')
-    tickets = yield self.host.bridge.ticketsGet(service.full() if service else u'', node, C.NO_LIMIT, [ticket_id], '', {}, profile)
+    tickets = yield self.host.bridgeCall("ticketsGet", 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,7 +58,7 @@
     except (KeyError, IndexError):
         pass
     profile = self.getProfile(request)
-    yield self.host.bridge.ticketSet(service.full(), node, posted_data, u'', ticket_id, {}, profile)
+    yield self.host.bridgeCall("ticketSet", service.full(), node, posted_data, u'', ticket_id, {}, profile)
     # we don't want to redirect to edit page on success, but to tickets list
     data['post_redirect_page'] = (self.getPageByName(u'tickets'),
                                   service.full(),