Mercurial > kallithea
comparison rhodecode/model/notification.py @ 3448:cf665eb84d4c beta
notification model should only send html emails not generating multipart ones
author | Marcin Kuzminski <marcin@python-works.com> |
---|---|
date | Mon, 04 Mar 2013 12:12:38 +0100 |
parents | bbe21df7ad48 |
children | 260a7a01b054 |
comparison
equal
deleted
inserted
replaced
3447:e74557f57f76 | 3448:cf665eb84d4c |
---|---|
107 rec_objs = set(recipients_objs).difference(set([created_by_obj])) | 107 rec_objs = set(recipients_objs).difference(set([created_by_obj])) |
108 | 108 |
109 # send email with notification to all other participants | 109 # send email with notification to all other participants |
110 for rec in rec_objs: | 110 for rec in rec_objs: |
111 if not email_subject: | 111 if not email_subject: |
112 email_subject = NotificationModel().make_description(notif, show_age=False) | 112 email_subject = NotificationModel()\ |
113 .make_description(notif, show_age=False) | |
113 type_ = type_ | 114 type_ = type_ |
114 email_body = body | 115 email_body = None # we set body to none, we just send HTML emails |
115 ## this is passed into template | 116 ## this is passed into template |
116 kwargs = {'subject': subject, 'body': h.rst_w_mentions(body)} | 117 kwargs = {'subject': subject, 'body': h.rst_w_mentions(body)} |
117 kwargs.update(email_kwargs) | 118 kwargs.update(email_kwargs) |
118 email_body_html = EmailNotificationModel()\ | 119 email_body_html = EmailNotificationModel()\ |
119 .get_email_tmpl(type_, **kwargs) | 120 .get_email_tmpl(type_, **kwargs) |