Mercurial > kallithea
diff rhodecode/model/notification.py @ 3423:043d3827cd88 beta
added template context into Notification templates
author | Marcin Kuzminski <marcin@python-works.com> |
---|---|
date | Sat, 02 Mar 2013 16:27:56 +0100 |
parents | 81397bd3e77f |
children | bbe21df7ad48 |
line wrap: on
line diff
--- a/rhodecode/model/notification.py Fri Mar 01 18:36:07 2013 +0100 +++ b/rhodecode/model/notification.py Sat Mar 02 16:27:56 2013 +0100 @@ -28,6 +28,7 @@ import logging import traceback +from pylons import tmpl_context as c from pylons.i18n.translation import _ import rhodecode @@ -272,7 +273,8 @@ email_template = self._tmpl_lookup.get_template(base) # translator and helpers inject _kwargs = {'_': _, - 'h': h} + 'h': h, + 'c': c} _kwargs.update(kwargs) log.debug('rendering tmpl %s with kwargs %s' % (base, _kwargs)) return email_template.render(**_kwargs)