comparison src/pages/tickets/page_meta.py @ 1007:c1c74d97a691

pages(tickets): use bridgeCall instead of bridge
author Goffi <goffi@goffi.org>
date Fri, 12 Jan 2018 15:42:58 +0100
parents 7fdd24014aa4
children b39c527f208c
comparison
equal deleted inserted replaced
1006:d0b27d1e2d50 1007:c1c74d97a691
54 data = self.getRData(request) 54 data = self.getRData(request)
55 template_data = request.template_data 55 template_data = request.template_data
56 service, node = data[u'service'], data[u'node'] 56 service, node = data[u'service'], data[u'node']
57 profile = self.getProfile(request) or C.SERVICE_PROFILE 57 profile = self.getProfile(request) or C.SERVICE_PROFILE
58 58
59 tickets = yield self.host.bridge.ticketsGet(service.full() if service else u'', node, C.NO_LIMIT, [], '', {}, profile) 59 tickets = yield self.host.bridgeCall('ticketsGet', service.full() if service else u'', node, C.NO_LIMIT, [], '', {}, profile)
60 template_data[u'tickets'] = [template_xmlui.create(self.host, x) for x in tickets[0]] 60 template_data[u'tickets'] = [template_xmlui.create(self.host, x) for x in tickets[0]]
61 template_data[u'on_ticket_click'] = data_objects.OnClick(url=self.getSubPageURL(request, 'tickets_view', '{item.id}')) 61 template_data[u'on_ticket_click'] = data_objects.OnClick(url=self.getSubPageURL(request, 'tickets_view', '{item.id}'))