diff options
| -rw-r--r-- | Mailman/Errors.py | 33 | ||||
| -rw-r--r-- | modules/mm_err.py | 33 |
2 files changed, 58 insertions, 8 deletions
diff --git a/Mailman/Errors.py b/Mailman/Errors.py index 51850e9aa..1b294a21a 100644 --- a/Mailman/Errors.py +++ b/Mailman/Errors.py @@ -1,7 +1,7 @@ -MODERATED_LIST_MSG = "Moderated list" -IMPLICIT_DEST_MSG = "Implicit destination" -SUSPICIOUS_HEADER_MSG = "Suspicious header" -FORBIDDEN_SENDER_MSG = "Forbidden sender" +"""Shared mailman errors and messages.""" + +__version__ = "$Revision: 397 $" + MMUnknownListError = "MMUnknownListError" MMBadListError = "MMBadListError" @@ -24,3 +24,28 @@ MMAlreadyUndigested = "MMAlreadyUndigested" MMBadRequestId = "MMBadRequestId" MMWebSubscribeRequiresConfirmation = "MMWebSubscribeRequiresConfirmation" +MODERATED_LIST_MSG = "Moderated list" +IMPLICIT_DEST_MSG = "Implicit destination" +SUSPICIOUS_HEADER_MSG = "Suspicious header" +FORBIDDEN_SENDER_MSG = "Forbidden sender" + +MESSAGE_DECORATION_NOTE = """This text can include <b>%(field)s</b> format +strings which are resolved against the list's attribute dictionary (__dict__). +Some useful fields are: + +<dl> + <dt>real_name + <dd>The "pretty" name of the list, with capitalization. + <dt>_internal_name + <dd>The name by which the list is identified in URLs, where case + is germane. + <dt>host_name + <dd>The domain-qualified host name where the list server runs. + <dt>web_page_url + <dd>The mailman root URL to which, eg, 'listinfo/%(_internal_name)s + can be appended to yield the listinfo page for the list. + <dt>description + <dd>The brief description of the list. + <dt>info + <dd>The less brief list description. +""" diff --git a/modules/mm_err.py b/modules/mm_err.py index 51850e9aa..1b294a21a 100644 --- a/modules/mm_err.py +++ b/modules/mm_err.py @@ -1,7 +1,7 @@ -MODERATED_LIST_MSG = "Moderated list" -IMPLICIT_DEST_MSG = "Implicit destination" -SUSPICIOUS_HEADER_MSG = "Suspicious header" -FORBIDDEN_SENDER_MSG = "Forbidden sender" +"""Shared mailman errors and messages.""" + +__version__ = "$Revision: 397 $" + MMUnknownListError = "MMUnknownListError" MMBadListError = "MMBadListError" @@ -24,3 +24,28 @@ MMAlreadyUndigested = "MMAlreadyUndigested" MMBadRequestId = "MMBadRequestId" MMWebSubscribeRequiresConfirmation = "MMWebSubscribeRequiresConfirmation" +MODERATED_LIST_MSG = "Moderated list" +IMPLICIT_DEST_MSG = "Implicit destination" +SUSPICIOUS_HEADER_MSG = "Suspicious header" +FORBIDDEN_SENDER_MSG = "Forbidden sender" + +MESSAGE_DECORATION_NOTE = """This text can include <b>%(field)s</b> format +strings which are resolved against the list's attribute dictionary (__dict__). +Some useful fields are: + +<dl> + <dt>real_name + <dd>The "pretty" name of the list, with capitalization. + <dt>_internal_name + <dd>The name by which the list is identified in URLs, where case + is germane. + <dt>host_name + <dd>The domain-qualified host name where the list server runs. + <dt>web_page_url + <dd>The mailman root URL to which, eg, 'listinfo/%(_internal_name)s + can be appended to yield the listinfo page for the list. + <dt>description + <dd>The brief description of the list. + <dt>info + <dd>The less brief list description. +""" |
