comparison roundup/cgi/engine_jinja2.py @ 4753:df36d7bd9a02

- Add more templates - Move page-header to a block of its own - Make the status message available to templates
author Pradip Caulagi <caulagi@gmail.com>
date Sun, 03 Feb 2013 11:58:25 +0530
parents a8c95abaf3fb
children a6b3134f26da
comparison
equal deleted inserted replaced
4752:5350126b32ea 4753:df36d7bd9a02
80 self._tpl = template 80 self._tpl = template
81 81
82 def render(self, client, classname, request, **options): 82 def render(self, client, classname, request, **options):
83 # [ ] limit the information passed to the minimal necessary set 83 # [ ] limit the information passed to the minimal necessary set
84 c = context(client, self, classname, request) 84 c = context(client, self, classname, request)
85 '''c.update({'options': options}) 85 c.update({'options': options})
86 86
87 '''
87 def translate(msgid, domain=None, mapping=None, default=None): 88 def translate(msgid, domain=None, mapping=None, default=None):
88 result = client.translator.translate(domain, msgid, 89 result = client.translator.translate(domain, msgid,
89 mapping=mapping, default=default) 90 mapping=mapping, default=default)
90 return unicode(result, client.translator.OUTPUT_ENCODING) 91 return unicode(result, client.translator.OUTPUT_ENCODING)
91 92

Roundup Issue Tracker: http://roundup-tracker.org/