summaryrefslogtreecommitdiffstats
path: root/hyperkitty/lib
diff options
context:
space:
mode:
authorAurélien Bompard <aurelien@bompard.org>2013-05-03 19:00:31 +0200
committerAurélien Bompard <aurelien@bompard.org>2013-05-03 19:29:19 +0200
commit3123d2ed9220ab1103a800041e4e46d0f6fbf6c8 (patch)
tree4cf919a247ca5b31b17b7dc9d9a44d92315f3f83 /hyperkitty/lib
parent366a134413586f3ddbf453ea1601eb1944d43d90 (diff)
downloadhyperkitty-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__.py7
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