Mercurial > kallithea
comparison rhodecode/model/notification.py @ 1769:025f3333c769 beta
@mention highlighting
author | Marcin Kuzminski <marcin@python-works.com> |
---|---|
date | Thu, 08 Dec 2011 03:36:13 +0200 |
parents | 8321b3d19b1f |
children | 2aee0dc1784e |
comparison
equal
deleted
inserted
replaced
1768:5610fd9b6803 | 1769:025f3333c769 |
---|---|
102 # send email with notification | 102 # send email with notification |
103 for rec in recipients_objs: | 103 for rec in recipients_objs: |
104 email_subject = NotificationModel().make_description(notif, False) | 104 email_subject = NotificationModel().make_description(notif, False) |
105 type_ = type_ | 105 type_ = type_ |
106 email_body = body | 106 email_body = body |
107 kwargs = {'subject':subject, 'body':h.rst(body)} | 107 kwargs = {'subject':subject, 'body':h.rst_w_mentions(body)} |
108 kwargs.update(email_kwargs) | 108 kwargs.update(email_kwargs) |
109 email_body_html = EmailNotificationModel()\ | 109 email_body_html = EmailNotificationModel()\ |
110 .get_email_tmpl(type_, **kwargs) | 110 .get_email_tmpl(type_, **kwargs) |
111 run_task(tasks.send_email, rec.email, email_subject, email_body, | 111 run_task(tasks.send_email, rec.email, email_subject, email_body, |
112 email_body_html) | 112 email_body_html) |