equal
deleted
inserted
replaced
102 |
102 |
103 Args: |
103 Args: |
104 entity : An accepted group application |
104 entity : An accepted group application |
105 """ |
105 """ |
106 |
106 |
107 to_user = entity.applicant |
|
108 |
|
109 url = "http://%(host)s%(redirect)s" % { |
107 url = "http://%(host)s%(redirect)s" % { |
110 'redirect': redirects.getApplicantRedirect(entity, |
108 'redirect': redirects.getApplicantRedirect(entity, |
111 {'url_name': params['group_url_name']}), |
109 {'url_name': params['group_url_name']}), |
112 'host': os.environ['HTTP_HOST'], |
110 'host': os.environ['HTTP_HOST'], |
113 } |
111 } |
124 'group_name': entity.name, |
122 'group_name': entity.name, |
125 } |
123 } |
126 |
124 |
127 template = DEF_NEW_GROUP_TEMPLATE |
125 template = DEF_NEW_GROUP_TEMPLATE |
128 |
126 |
129 sendNotification(to_user, None, message_properties, subject, template) |
127 for to in [entity.applicant, entity.backup_admin]: |
|
128 sendNotification(to, None, message_properties, subject, template) |
130 |
129 |
131 |
130 |
132 def sendNewReviewNotification(to_user, review, reviewed_name, redirect_url): |
131 def sendNewReviewNotification(to_user, review, reviewed_name, redirect_url): |
133 """Sends out a notification to alert the user of a new Review. |
132 """Sends out a notification to alert the user of a new Review. |
134 |
133 |