Revision e872c133 snf-astakos-app/astakos/im/project_notif.py
b/snf-astakos-app/astakos/im/project_notif.py | ||
---|---|---|
137 | 137 |
).send() |
138 | 138 |
except NotificationError, e: |
139 | 139 |
logger.error(e.message) |
140 |
|
|
141 |
|
|
142 |
def project_unsuspension_notify(project): |
|
143 |
try: |
|
144 |
build_notification( |
|
145 |
SENDER, |
|
146 |
[project.application.owner.email], |
|
147 |
_(messages.PROJECT_UNSUSPENSION_SUBJECT) % project.__dict__, |
|
148 |
template='im/projects/project_unsuspension_notification.txt', |
|
149 |
dictionary={'object': project} |
|
150 |
).send() |
|
151 |
except NotificationError, e: |
|
152 |
logger.error(e.message) |
|
153 |
|
|
154 |
|
|
155 |
def project_reinstatement_notify(project): |
|
156 |
try: |
|
157 |
build_notification( |
|
158 |
SENDER, |
|
159 |
[project.application.owner.email], |
|
160 |
_(messages.PROJECT_REINSTATEMENT_SUBJECT) % project.__dict__, |
|
161 |
template='im/projects/project_reinstatement_notification.txt', |
|
162 |
dictionary={'object': project} |
|
163 |
).send() |
|
164 |
except NotificationError, e: |
|
165 |
logger.error(e.message) |
Also available in: Unified diff