diff options
| author | Barry Warsaw | 2011-06-16 16:46:02 -0400 |
|---|---|---|
| committer | Barry Warsaw | 2011-06-16 16:46:02 -0400 |
| commit | a8722b736a9070288f9bd62b8650f9e682a33ea6 (patch) | |
| tree | 0d2a9342963d9b81af5cd822c571beefda29b7a2 /src/mailman/pipeline | |
| parent | 3c99f28d219596434e8547df95e7041e2cf21fb7 (diff) | |
| download | mailman-a8722b736a9070288f9bd62b8650f9e682a33ea6.tar.gz mailman-a8722b736a9070288f9bd62b8650f9e682a33ea6.tar.zst mailman-a8722b736a9070288f9bd62b8650f9e682a33ea6.zip | |
* The IMailingList attribute ``host_name`` has been renamed to ``mail_host``
for consistency. This changes the REST API for mailing list
resources. (LP: #787599)
Diffstat (limited to 'src/mailman/pipeline')
| -rw-r--r-- | src/mailman/pipeline/decorate.py | 2 | ||||
| -rw-r--r-- | src/mailman/pipeline/docs/cook-headers.txt | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/src/mailman/pipeline/decorate.py b/src/mailman/pipeline/decorate.py index d71e05cdc..fd3d14e3a 100644 --- a/src/mailman/pipeline/decorate.py +++ b/src/mailman/pipeline/decorate.py @@ -204,7 +204,7 @@ def decorate(mlist, template, extradict=None): real_name = mlist.real_name, list_name = mlist.list_name, fqdn_listname = mlist.fqdn_listname, - host_name = mlist.host_name, + host_name = mlist.mail_host, listinfo_page = mlist.script_url('listinfo'), description = mlist.description, info = mlist.info, diff --git a/src/mailman/pipeline/docs/cook-headers.txt b/src/mailman/pipeline/docs/cook-headers.txt index 834b140fa..cd2acaae2 100644 --- a/src/mailman/pipeline/docs/cook-headers.txt +++ b/src/mailman/pipeline/docs/cook-headers.txt @@ -199,7 +199,7 @@ set the ``List-ID`` header. Start by creating a new domain. >>> from mailman.interfaces.domain import IDomainManager >>> from zope.component import getUtility >>> domain = getUtility(IDomainManager).add('mail.example.net') - >>> mlist.host_name = 'mail.example.net' + >>> mlist.mail_host = 'mail.example.net' >>> process(mlist, msg, {}) >>> print msg['list-id'] @@ -210,7 +210,7 @@ set the ``List-ID`` header. Start by creating a new domain. >>> print msg['list-id'] My test mailing list <_xtest.mail.example.net> - >>> mlist.host_name = 'example.com' + >>> mlist.mail_host = 'example.com' >>> mlist.list_id = '_xtest.example.com' Any existing ``List-ID`` headers are removed from the original message. |
