summaryrefslogtreecommitdiff
path: root/Mailman/constants.py
diff options
context:
space:
mode:
authorBarry Warsaw2007-06-09 15:20:32 -0400
committerBarry Warsaw2007-06-09 15:20:32 -0400
commit3231fd628f6eea30bd6e2be56eb419ed0008d954 (patch)
tree176f80a7b4f72c410e30ab9ba3e3fe2deb1bb1fe /Mailman/constants.py
parente5c04e2a93a58d799dd3940a7935853eb1f2e3e4 (diff)
downloadmailman-3231fd628f6eea30bd6e2be56eb419ed0008d954.tar.gz
mailman-3231fd628f6eea30bd6e2be56eb419ed0008d954.tar.zst
mailman-3231fd628f6eea30bd6e2be56eb419ed0008d954.zip
Diffstat (limited to 'Mailman/constants.py')
-rw-r--r--Mailman/constants.py22
1 files changed, 22 insertions, 0 deletions
diff --git a/Mailman/constants.py b/Mailman/constants.py
index 852704364..7b3876a2a 100644
--- a/Mailman/constants.py
+++ b/Mailman/constants.py
@@ -18,6 +18,9 @@
"""Various constants and enumerations."""
from munepy import Enum
+from zope.interface import implements
+
+from Mailman.interfaces import IPreferences
@@ -42,3 +45,22 @@ class DeliveryStatus(Enum):
by_bounces = 3
# Delivery was disabled by an administrator or moderator
by_moderator = 4
+
+
+
+class MemberRole(Enum):
+ member = 1
+ owner = 2
+ moderator = 3
+
+
+
+class SystemDefaultPreferences(object):
+ implements(IPreferences)
+
+ acknowledge_posts = False
+ hide_address = True
+ preferred_language = 'en'
+ receive_list_copy = True
+ receive_own_postings = True
+ delivery_mode = DeliveryMode.regular