Revision ae497612 snf-astakos-app/astakos/im/functions.py
b/snf-astakos-app/astakos/im/functions.py | ||
---|---|---|
61 | 61 |
FEEDBACK_EMAIL_SUBJECT, |
62 | 62 |
EMAIL_CHANGE_EMAIL_SUBJECT) |
63 | 63 |
import astakos.im.models |
64 |
import astakos.im.messages as astakos_messages |
|
64 | 65 |
|
65 | 66 |
logger = logging.getLogger(__name__) |
66 | 67 |
|
... | ... | |
303 | 304 |
|
304 | 305 |
class SendAdminNotificationError(SendMailError): |
305 | 306 |
def __init__(self): |
306 |
self.message = _('Failed to send notification')
|
|
307 |
self.message = _(astakos_messages.ADMIN_NOTIFICATION_SEND_ERR)
|
|
307 | 308 |
super(SendAdminNotificationError, self).__init__() |
308 | 309 |
|
309 | 310 |
|
310 | 311 |
class SendVerificationError(SendMailError): |
311 | 312 |
def __init__(self): |
312 |
self.message = _('Failed to send verification')
|
|
313 |
self.message = _(astakos_messages.VERIFICATION_SEND_ERR)
|
|
313 | 314 |
super(SendVerificationError, self).__init__() |
314 | 315 |
|
315 | 316 |
|
316 | 317 |
class SendInvitationError(SendMailError): |
317 | 318 |
def __init__(self): |
318 |
self.message = _('Failed to send invitation')
|
|
319 |
self.message = _(astakos_messages.INVITATION_SEND_ERR)
|
|
319 | 320 |
super(SendInvitationError, self).__init__() |
320 | 321 |
|
321 | 322 |
|
322 | 323 |
class SendGreetingError(SendMailError): |
323 | 324 |
def __init__(self): |
324 |
self.message = _('Failed to send greeting')
|
|
325 |
self.message = _(astakos_messages.GREETING_SEND_ERR)
|
|
325 | 326 |
super(SendGreetingError, self).__init__() |
326 | 327 |
|
327 | 328 |
|
328 | 329 |
class SendFeedbackError(SendMailError): |
329 | 330 |
def __init__(self): |
330 |
self.message = _('Failed to send feedback')
|
|
331 |
self.message = _(astakos_messages.FEEDBACK_SEND_ERR)
|
|
331 | 332 |
super(SendFeedbackError, self).__init__() |
332 | 333 |
|
333 | 334 |
|
334 | 335 |
class ChangeEmailError(SendMailError): |
335 | 336 |
def __init__(self): |
336 |
self.message = _('Failed to send change email')
|
|
337 |
self.message = self.message = _(astakos_messages.CHANGE_EMAIL_SEND_ERR)
|
|
337 | 338 |
super(ChangeEmailError, self).__init__() |
338 | 339 |
|
339 | 340 |
|
340 | 341 |
class SendNotificationError(SendMailError): |
341 | 342 |
def __init__(self): |
342 |
self.message = _('Failed to send notification email')
|
|
343 |
self.message = _(astakos_messages.NOTIFICATION_SEND_ERR)
|
|
343 | 344 |
super(SendNotificationError, self).__init__() |
Also available in: Unified diff