Revision ae497612 snf-astakos-app/astakos/im/activation_backends.py
b/snf-astakos-app/astakos/im/activation_backends.py | ||
---|---|---|
41 | 41 |
from astakos.im.functions import (send_verification, send_activation, |
42 | 42 |
send_account_creation_notification, |
43 | 43 |
send_group_creation_notification, activate) |
44 |
from astakos.im.settings import INVITATIONS_ENABLED, MODERATION_ENABLED, SITENAME, RE_USER_EMAIL_PATTERNS |
|
44 |
from astakos.im.settings import (INVITATIONS_ENABLED, MODERATION_ENABLED, |
|
45 |
SITENAME, RE_USER_EMAIL_PATTERNS |
|
46 |
) |
|
47 |
from astakos.im.messages import as astakos_messages |
|
45 | 48 |
|
46 | 49 |
import logging |
47 | 50 |
import re |
... | ... | |
226 | 229 |
|
227 | 230 |
class VerificationSent(ActivationResult): |
228 | 231 |
def __init__(self): |
229 |
message = _('Verification sent.')
|
|
232 |
message = _(astakos_messages.VERIFICATION_SENT)
|
|
230 | 233 |
super(VerificationSent, self).__init__(message) |
231 | 234 |
|
232 | 235 |
|
233 | 236 |
class SwitchAccountsVerificationSent(ActivationResult): |
234 | 237 |
def __init__(self, email): |
235 |
message = _('This email is already associated with another \ |
|
236 |
local account. To change this account to a shibboleth \ |
|
237 |
one follow the link in the verification email sent \ |
|
238 |
to %s. Otherwise just ignore it.' % email) |
|
238 |
message = _(astakos_messages.SWITCH_ACCOUNT_LINK_SENT) |
|
239 | 239 |
super(SwitchAccountsVerificationSent, self).__init__(message) |
240 | 240 |
|
241 | 241 |
|
242 | 242 |
class NotificationSent(ActivationResult): |
243 | 243 |
def __init__(self): |
244 |
message = _('Your request for an account was successfully received and is now pending \ |
|
245 |
approval. You will be notified by email in the next few days. Thanks for \ |
|
246 |
your interest in ~okeanos! The GRNET team.') |
|
244 |
message = _(astakos_messages.NOTIFACATION_SENT) |
|
247 | 245 |
super(NotificationSent, self).__init__(message) |
248 | 246 |
|
249 | 247 |
|
250 | 248 |
class RegistationCompleted(ActivationResult): |
251 | 249 |
def __init__(self): |
252 |
message = _('Registration completed. You can now login.')
|
|
250 |
message = _(astakos_messages.REGISTRATION_COMPLETED)
|
|
253 | 251 |
super(RegistationCompleted, self).__init__(message) |
Also available in: Unified diff