summaryrefslogtreecommitdiff
path: root/Mailman/app/styles.py
diff options
context:
space:
mode:
authorBarry Warsaw2008-02-17 23:34:09 -0500
committerBarry Warsaw2008-02-17 23:34:09 -0500
commit7ce2361faa1033bde84579ae9205944e5554b57f (patch)
tree2574ab932f57aed10cb33ef43d6f27717da07617 /Mailman/app/styles.py
parent69d158b13ae9cfa37040c2e7a664ca266b42050b (diff)
downloadmailman-7ce2361faa1033bde84579ae9205944e5554b57f.tar.gz
mailman-7ce2361faa1033bde84579ae9205944e5554b57f.tar.zst
mailman-7ce2361faa1033bde84579ae9205944e5554b57f.zip
Added a test for the built-in pipeline. Fixed some broken handler names in
the built-in pipeline. Fixed DEFAULT_SUBJECT_PREFIX to take $-names instead of %-names, although I'm not entirely sure the %%d stuff still works (we need a test for this). Added IMailingList.real_name attribute and added this to the default style. A column for this was in the database but not in the storm object. Also re-enabled the style's subject_prefix attribute. Moved some of the digest test functions into Mailman.tests.helpers.
Diffstat (limited to '')
-rw-r--r--Mailman/app/styles.py9
1 files changed, 7 insertions, 2 deletions
diff --git a/Mailman/app/styles.py b/Mailman/app/styles.py
index 93a424f34..22cac9d82 100644
--- a/Mailman/app/styles.py
+++ b/Mailman/app/styles.py
@@ -33,9 +33,12 @@ from Mailman import Utils
from Mailman.Errors import DuplicateStyleError
from Mailman.app.plugins import get_plugins
from Mailman.configuration import config
+from Mailman.i18n import _
from Mailman.interfaces import (
Action, IStyle, IStyleManager, NewsModeration, Personalization)
+__i18n_templates__ = True
+
class DefaultStyle:
@@ -52,6 +55,7 @@ class DefaultStyle:
mlist.post_id = 1
mlist.new_member_options = config.DEFAULT_NEW_MEMBER_OPTIONS
# This stuff is configurable
+ mlist.real_name = mlist.list_name.capitalize()
mlist.respond_to_post_requests = True
mlist.advertised = config.DEFAULT_LIST_ADVERTISED
mlist.max_num_recipients = config.DEFAULT_MAX_NUM_RECIPIENTS
@@ -135,8 +139,7 @@ class DefaultStyle:
# 2-tuple of the date of the last autoresponse and the number of
# autoresponses sent on that date.
mlist.hold_and_cmd_autoresponses = {}
- # XXX FIXME
- #mlist.subject_prefix = config.DEFAULT_SUBJECT_PREFIX % mlist.__dict__
+ mlist.subject_prefix = _(config.DEFAULT_SUBJECT_PREFIX)
mlist.msg_header = config.DEFAULT_MSG_HEADER
mlist.msg_footer = config.DEFAULT_MSG_FOOTER
# Set this to Never if the list's preferred language uses us-ascii,
@@ -228,6 +231,8 @@ class DefaultStyle:
# The processing chain that messages coming into this list get
# processed by.
mlist.start_chain = u'built-in'
+ # The default pipeline to send accepted messages through.
+ mlist.pipeline = u'built-in'
def match(self, mailing_list, styles):
# If no other styles have matched, then the default style matches.