comparison src/pages/tickets/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 4d1dcf97740f
children c8cafe316f6f
comparison
equal deleted inserted replaced
972:c4e58c4dba75 973:2e75dc986e03
40 else: 40 else:
41 if not node or node == u'@': 41 if not node or node == u'@':
42 node = u'' 42 node = u''
43 43
44 data = self.getRData(request) 44 data = self.getRData(request)
45
46 data['service'] = service 45 data['service'] = service
47 data['node'] = node 46 data['node'] = node
48 47
48 template_data = request.template_data
49 template_data[u'url_tickets_list'] = self.getPageByName('tickets_list').getURL(service.full(), node or u'@')
50 template_data[u'url_tickets_new'] = u'/' + ('/'.join(request.prepath + ['new']).decode('utf-8'))
49 51
50 @defer.inlineCallbacks 52 @defer.inlineCallbacks
51 def prepare_render(self, request): 53 def prepare_render(self, request):
52 data = self.getRData(request) 54 data = self.getRData(request)
53 template_data = request.template_data 55 template_data = request.template_data