comparison rhodecode/model/notification.py @ 2296:e5c0f201ca0b codereview

Add changeset status change into emails
author Marcin Kuzminski <marcin@python-works.com>
date Thu, 17 May 2012 12:54:44 +0200
parents 76947224bf27
children 91fae60bf2b6
comparison
equal deleted inserted replaced
2287:8447d35b674e 2296:e5c0f201ca0b
106 # send email with notification 106 # send email with notification
107 for rec in recipients_objs: 107 for rec in recipients_objs:
108 email_subject = NotificationModel().make_description(notif, False) 108 email_subject = NotificationModel().make_description(notif, False)
109 type_ = type_ 109 type_ = type_
110 email_body = body 110 email_body = body
111 ## this is passed into template
111 kwargs = {'subject': subject, 'body': h.rst_w_mentions(body)} 112 kwargs = {'subject': subject, 'body': h.rst_w_mentions(body)}
112 kwargs.update(email_kwargs) 113 kwargs.update(email_kwargs)
113 email_body_html = EmailNotificationModel()\ 114 email_body_html = EmailNotificationModel()\
114 .get_email_tmpl(type_, **kwargs) 115 .get_email_tmpl(type_, **kwargs)
115 116