Mercurial > kallithea
diff rhodecode/model/notification.py @ 2156:a27e4d44237e beta
Use __unicode__ instead of __repr__ in models.
author | Marcin Kuzminski <marcin@python-works.com> |
---|---|
date | Thu, 22 Mar 2012 02:44:42 +0200 |
parents | 50aa7cb78cfe |
children | 76947224bf27 7d517a35b6c9 |
line wrap: on
line diff
--- a/rhodecode/model/notification.py Thu Mar 22 02:35:50 2012 +0200 +++ b/rhodecode/model/notification.py Thu Mar 22 02:44:42 2012 +0200 @@ -112,6 +112,7 @@ kwargs.update(email_kwargs) email_body_html = EmailNotificationModel()\ .get_email_tmpl(type_, **kwargs) + run_task(tasks.send_email, rec.email, email_subject, email_body, email_body_html) @@ -183,6 +184,7 @@ else: DTF = lambda d: datetime.datetime.strftime(d, DATETIME_FORMAT) when = DTF(notification.created_on) + data = dict( user=notification.created_by_user.username, action=_map[notification.type_], when=when,