comparison rhodecode/model/notification.py @ 2391:91fae60bf2b6 codereview

merge with beta
author Marcin Kuzminski <marcin@python-works.com>
date Tue, 05 Jun 2012 21:22:23 +0200
parents e5c0f201ca0b 7d517a35b6c9
children d3ac7491a5c8
comparison
equal deleted inserted replaced
2364:9d61aad859bc 2391:91fae60bf2b6
101 ) 101 )
102 102
103 if with_email is False: 103 if with_email is False:
104 return notif 104 return notif
105 105
106 # send email with notification 106 #don't send email to person who created this comment
107 for rec in recipients_objs: 107 rec_objs = set(recipients_objs).difference(set([created_by_obj]))
108
109 # send email with notification to all other participants
110 for rec in rec_objs:
108 email_subject = NotificationModel().make_description(notif, False) 111 email_subject = NotificationModel().make_description(notif, False)
109 type_ = type_ 112 type_ = type_
110 email_body = body 113 email_body = body
111 ## this is passed into template 114 ## this is passed into template
112 kwargs = {'subject': subject, 'body': h.rst_w_mentions(body)} 115 kwargs = {'subject': subject, 'body': h.rst_w_mentions(body)}