comparison src/pages/tickets/view/page_meta.py @ 975:75166ac3e0cc

pages (tickets/view): ignore publisher when creating XMLUI
author Goffi <goffi@goffi.org>
date Sat, 11 Nov 2017 18:40:31 +0100
parents 4d1dcf97740f
children 97cce8c1e96a
comparison
equal deleted inserted replaced
974:4aa38c49bff7 975:75166ac3e0cc
36 profile = C.SERVICE_PROFILE 36 profile = C.SERVICE_PROFILE
37 else: 37 else:
38 template_data['profile'] = profile 38 template_data['profile'] = profile
39 39
40 tickets = yield self.host.bridge.ticketsGet(service.full() if service else u'', node, C.NO_LIMIT, [ticket_id], '', {}, profile) 40 tickets = yield self.host.bridge.ticketsGet(service.full() if service else u'', node, C.NO_LIMIT, [ticket_id], '', {}, profile)
41 ticket = [template_xmlui.create(self.host, x) for x in tickets[0]][0] 41 ticket = [template_xmlui.create(self.host, x, ignore=['publisher']) for x in tickets[0]][0]
42 template_data[u'item'] = ticket 42 template_data[u'item'] = ticket
43 comments_uri = ticket.widgets['comments_uri'].value 43 comments_uri = ticket.widgets['comments_uri'].value
44 if comments_uri: 44 if comments_uri:
45 uri_data = uri.parseXMPPUri(comments_uri) 45 uri_data = uri.parseXMPPUri(comments_uri)
46 template_data['comments_node'] = comments_node = uri_data['node'] 46 template_data['comments_node'] = comments_node = uri_data['node']