summaryrefslogtreecommitdiff
path: root/src/mailman/constants.py
diff options
context:
space:
mode:
authorBarry Warsaw2009-07-16 22:36:06 -0400
committerBarry Warsaw2009-07-16 22:36:06 -0400
commit1bfc7f302f2730a679b2a4a103c2978d8e7c70ae (patch)
tree3d69d43841dcf838e9778d2e83cc3e58a7b9ed20 /src/mailman/constants.py
parentac3af23142c9b2417759f90837d68e15866b6793 (diff)
downloadmailman-1bfc7f302f2730a679b2a4a103c2978d8e7c70ae.tar.gz
mailman-1bfc7f302f2730a679b2a4a103c2978d8e7c70ae.tar.zst
mailman-1bfc7f302f2730a679b2a4a103c2978d8e7c70ae.zip
Diffstat (limited to 'src/mailman/constants.py')
-rw-r--r--src/mailman/constants.py12
1 files changed, 10 insertions, 2 deletions
diff --git a/src/mailman/constants.py b/src/mailman/constants.py
index 73158d8c7..1701c93f7 100644
--- a/src/mailman/constants.py
+++ b/src/mailman/constants.py
@@ -21,7 +21,7 @@ from __future__ import absolute_import, unicode_literals
__metaclass__ = type
__all__ = [
- 'SystemDefaultPreferences',
+ 'system_preferences',
]
@@ -44,8 +44,16 @@ class SystemDefaultPreferences:
acknowledge_posts = False
hide_address = True
- preferred_language = config.languages['en']
receive_list_copy = True
receive_own_postings = True
delivery_mode = DeliveryMode.regular
delivery_status = DeliveryStatus.enabled
+
+ @property
+ def preferred_language(self):
+ """Return the system preferred language."""
+ return config.languages['en']
+
+
+
+system_preferences = SystemDefaultPreferences()