Show More
@@ -28,6 +28,7 b' import os' | |||||
28 | import logging |
|
28 | import logging | |
29 | import traceback |
|
29 | import traceback | |
30 |
|
30 | |||
|
31 | from pylons import tmpl_context as c | |||
31 | from pylons.i18n.translation import _ |
|
32 | from pylons.i18n.translation import _ | |
32 |
|
33 | |||
33 | import rhodecode |
|
34 | import rhodecode | |
@@ -272,7 +273,8 b' class EmailNotificationModel(BaseModel):' | |||||
272 | email_template = self._tmpl_lookup.get_template(base) |
|
273 | email_template = self._tmpl_lookup.get_template(base) | |
273 | # translator and helpers inject |
|
274 | # translator and helpers inject | |
274 | _kwargs = {'_': _, |
|
275 | _kwargs = {'_': _, | |
275 |
'h': h |
|
276 | 'h': h, | |
|
277 | 'c': c} | |||
276 | _kwargs.update(kwargs) |
|
278 | _kwargs.update(kwargs) | |
277 | log.debug('rendering tmpl %s with kwargs %s' % (base, _kwargs)) |
|
279 | log.debug('rendering tmpl %s with kwargs %s' % (base, _kwargs)) | |
278 | return email_template.render(**_kwargs) |
|
280 | return email_template.render(**_kwargs) |
General Comments 0
You need to be logged in to leave comments.
Login now