diff options
author | Aurélien Bompard <aurelien@bompard.org> | 2013-05-03 19:00:31 +0200 |
---|---|---|
committer | Aurélien Bompard <aurelien@bompard.org> | 2013-05-03 19:29:19 +0200 |
commit | 3123d2ed9220ab1103a800041e4e46d0f6fbf6c8 (patch) | |
tree | 4cf919a247ca5b31b17b7dc9d9a44d92315f3f83 /hyperkitty/lib | |
parent | 366a134413586f3ddbf453ea1601eb1944d43d90 (diff) | |
download | hyperkitty-3123d2ed9220ab1103a800041e4e46d0f6fbf6c8.tar.gz hyperkitty-3123d2ed9220ab1103a800041e4e46d0f6fbf6c8.tar.xz hyperkitty-3123d2ed9220ab1103a800041e4e46d0f6fbf6c8.zip |
Standardize flash messages a bit
Diffstat (limited to 'hyperkitty/lib')
-rw-r--r-- | hyperkitty/lib/__init__.py | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/hyperkitty/lib/__init__.py b/hyperkitty/lib/__init__.py index 017a0b6..7ae9ee9 100644 --- a/hyperkitty/lib/__init__.py +++ b/hyperkitty/lib/__init__.py @@ -26,10 +26,15 @@ import datetime from django.conf import settings from django.core.exceptions import SuspiciousOperation from django.core.mail import EmailMessage -from mailmanclient import Client +FLASH_MESSAGES = { + "updated-ok": ("success", "The profile was successfully updated."), + "sent-ok": ("success", "The message has been sent successfully."), +} + + def gravatar_url(email): '''Return a gravatar url for an email address''' size = 64 |