summaryrefslogtreecommitdiff
path: root/src/mailman/interfaces/mailinglist.py
diff options
context:
space:
mode:
authorBarry Warsaw2012-03-04 18:39:08 -0500
committerBarry Warsaw2012-03-04 18:39:08 -0500
commit40347db84550a85f43e6befa4641693200d30509 (patch)
tree3d248904701bf0a8c673d384fb01d675c72a6917 /src/mailman/interfaces/mailinglist.py
parent73f497133ca7cadc91cdec9b87b80d2886f11472 (diff)
downloadmailman-40347db84550a85f43e6befa4641693200d30509.tar.gz
mailman-40347db84550a85f43e6befa4641693200d30509.tar.zst
mailman-40347db84550a85f43e6befa4641693200d30509.zip
Diffstat (limited to 'src/mailman/interfaces/mailinglist.py')
-rw-r--r--src/mailman/interfaces/mailinglist.py171
1 files changed, 145 insertions, 26 deletions
diff --git a/src/mailman/interfaces/mailinglist.py b/src/mailman/interfaces/mailinglist.py
index a7a964a06..4bd47a180 100644
--- a/src/mailman/interfaces/mailinglist.py
+++ b/src/mailman/interfaces/mailinglist.py
@@ -306,11 +306,6 @@ class IMailingList(Interface):
digest recipients are cleared.
""")
- decorators = Attribute(
- """An iterator over all the IDecorators associated with this digest.
- When a digest is being sent, each decorator may modify the final
- digest text.""")
-
# Web access.
scheme = Attribute(
@@ -334,24 +329,6 @@ class IMailingList(Interface):
'location' attribute.
"""
- # Notifications.
-
- admin_immed_notify = Attribute(
- """Flag controlling immediate notification of requests.
-
- List moderators normally get daily notices about pending
- administrative requests. This flag controls whether moderators also
- receive immediate notification of such pending requests.
- """)
-
- admin_notify_mchanges = Attribute(
- """Flag controlling notification of joins and leaves.
-
- List moderators can receive notifications for every member that joins
- or leaves their mailing lists. This flag controls those
- notifications.
- """)
-
# Autoresponses.
autoresponse_grace_period = Attribute(
@@ -518,13 +495,29 @@ class IMailingList(Interface):
# Notifications.
+ admin_immed_notify = Attribute(
+ """Flag controlling immediate notification of requests.
+
+ List moderators normally get daily notices about pending
+ administrative requests. This flag controls whether moderators also
+ receive immediate notification of such pending requests.
+ """)
+
+ admin_notify_mchanges = Attribute(
+ """Flag controlling notification of joins and leaves.
+
+ List moderators can receive notifications for every member that joins
+ or leaves their mailing lists. This flag controls those
+ notifications.
+ """)
+
send_welcome_message = Attribute(
"""Flag indicating whether a welcome message should be sent.""")
welcome_message_uri = Attribute(
"""URI for the list's welcome message.
- This can be any URI supported by `httplib2` with the addition of
+ This can be any URI supported by `urllib2` with the addition of
`mailman:` URIs, which reference internal default resources. This is
a template which can include the following placeholders:
@@ -551,14 +544,14 @@ class IMailingList(Interface):
goodbye_message_uri = Attribute(
"""URI for the list's goodbye message.
- This can be any URI supported by `httplib2` with the addition of
+ This can be any URI supported by `urllib2` with the addition of
`mailman:` URIs, which reference internal default resources. This is
a template which can include the following placeholders:
$listname - the FQDN list name for this mailing list.
$language - the language code, usually the list's preferred language.
- The resource will be downloaded and cached whenever the welcome
+ The resource will be downloaded and cached whenever the goodbye
message is sent. The resource at this URI can contain the following
placeholders, which are also filled in through values on the mailing
list:
@@ -572,6 +565,132 @@ class IMailingList(Interface):
$user_options_uri - the URI to this member's options page.
""")
+ # Decorators.
+
+ header_uri = Attribute(
+ """URI for the header decorator on regular delivery messages.
+
+ This can be any URI supported by `urllib2` with the addition of
+ `mailman:` URIs, which reference internal default resources. This is
+ a template which can include the following placeholders:
+
+ $listname - the FQDN list name for this mailing list.
+ $language - the language code, usually the list's preferred language.
+
+ The resource will be downloaded and cached whenever the decorator is
+ needed. The resource at this URI can contain the following
+ placeholders, which are also filled in through values on the mailing
+ list:
+
+ $fqdn_listname - the FQDN list name for this mailing list.
+ $list_name - the human readable name for the mailing list.
+ $host_name - the mailing list's host name
+ $listinfo_uri - the URI to the list's information page.
+ $list_requests - the address to the list's `-request` address.
+ $description - the mailing list's description
+ $info - additional mailing list's information
+
+ Personalized messages will also have these placeholders available:
+
+ $user_name - the name of the subscribing user.
+ $user_address - the email address of the subscribing user.
+ $user_options_uri - the URI to this member's options page.
+ """
+ )
+
+ footer_uri = Attribute(
+ """URI for the footer decorator on regular delivery messages.
+
+ This can be any URI supported by `urllib2` with the addition of
+ `mailman:` URIs, which reference internal default resources. This is
+ a template which can include the following placeholders:
+
+ $listname - the FQDN list name for this mailing list.
+ $language - the language code, usually the list's preferred language.
+
+ The resource will be downloaded and cached whenever the decorator is
+ needed. The resource at this URI can contain the following
+ placeholders, which are also filled in through values on the mailing
+ list:
+
+ $fqdn_listname - the FQDN list name for this mailing list.
+ $list_name - the human readable name for the mailing list.
+ $host_name - the mailing list's host name
+ $listinfo_uri - the URI to the list's information page.
+ $list_requests - the address to the list's `-request` address.
+ $description - the mailing list's description
+ $info - additional mailing list's information
+
+ Personalized messages will also have these placeholders available:
+
+ $user_name - the name of the subscribing user.
+ $user_address - the email address of the subscribing user.
+ $user_options_uri - the URI to this member's options page.
+ """
+ )
+
+ digest_header_uri = Attribute(
+ """URI for the header decorator on digest messages.
+
+ This can be any URI supported by `urllib2` with the addition of
+ `mailman:` URIs, which reference internal default resources. This is
+ a template which can include the following placeholders:
+
+ $listname - the FQDN list name for this mailing list.
+ $language - the language code, usually the list's preferred language.
+
+ The resource will be downloaded and cached whenever the decorator is
+ needed. The resource at this URI can contain the following
+ placeholders, which are also filled in through values on the mailing
+ list:
+
+ $fqdn_listname - the FQDN list name for this mailing list.
+ $list_name - the human readable name for the mailing list.
+ $host_name - the mailing list's host name
+ $listinfo_uri - the URI to the list's information page.
+ $list_requests - the address to the list's `-request` address.
+ $description - the mailing list's description
+ $info - additional mailing list's information
+
+ Personalized messages will also have these placeholders available:
+
+ $user_name - the name of the subscribing user.
+ $user_address - the email address of the subscribing user.
+ $user_options_uri - the URI to this member's options page.
+ """
+ )
+
+ digest_footer_uri = Attribute(
+ """URI for the footer decorator on digest messages.
+
+ This can be any URI supported by `urllib2` with the addition of
+ `mailman:` URIs, which reference internal default resources. This is
+ a template which can include the following placeholders:
+
+ $listname - the FQDN list name for this mailing list.
+ $language - the language code, usually the list's preferred language.
+
+ The resource will be downloaded and cached whenever the decorator is
+ needed. The resource at this URI can contain the following
+ placeholders, which are also filled in through values on the mailing
+ list:
+
+ $fqdn_listname - the FQDN list name for this mailing list.
+ $list_name - the human readable name for the mailing list.
+ $host_name - the mailing list's host name
+ $listinfo_uri - the URI to the list's information page.
+ $list_requests - the address to the list's `-request` address.
+ $description - the mailing list's description
+ $info - additional mailing list's information
+
+ Personalized messages will also have these placeholders available:
+
+ $user_name - the name of the subscribing user.
+ $user_address - the email address of the subscribing user.
+ $user_options_uri - the URI to this member's options page.
+ """
+ )
+
class IAcceptableAlias(Interface):