Mercurial > libervia-web
diff src/pages/tickets/new/page_meta.py @ 973:2e75dc986e03
pages (tickets): URLs for list and new are set in the template for the whole subhierarchy
author | Goffi <goffi@goffi.org> |
---|---|
date | Fri, 10 Nov 2017 13:32:57 +0100 |
parents | 6e966ef8d69f |
children | 0f676f09404b |
line wrap: on
line diff
--- a/src/pages/tickets/new/page_meta.py Fri Nov 10 11:10:15 2017 +0100 +++ b/src/pages/tickets/new/page_meta.py Fri Nov 10 13:32:57 2017 +0100 @@ -8,6 +8,7 @@ log = getLogger('pages/ticket') """ticket handling pages""" +name = u'tickets_new' access = C.PAGES_ACCESS_PROFILE template = u"ticket/create.html" @@ -15,6 +16,7 @@ @defer.inlineCallbacks def prepare_render(self, request): data = self.getRData(request) + template_data = request.template_data service, node = data.get(u'service', u''), data.get(u'node', u'') profile = self.getProfile(request) schema = yield self.host.bridge.ticketsSchemaGet(service.full(), node, profile) @@ -27,7 +29,7 @@ xmlui_obj.widgets[u'labels'].type = u'string' except KeyError: pass - request.template_data[u'new_ticket_xmlui'] = xmlui_obj + template_data[u'new_ticket_xmlui'] = xmlui_obj @defer.inlineCallbacks def on_data_post(self, request):