diff options
| author | Barry Warsaw | 2009-12-08 22:39:10 -0500 |
|---|---|---|
| committer | Barry Warsaw | 2009-12-08 22:39:10 -0500 |
| commit | 3d65590999f5288307ecb0df6ae1b77241869f61 (patch) | |
| tree | 7047453b1ddfbc6d5715834553f46e3362d3e1da /src/mailman/pipeline/docs/cook-headers.txt | |
| parent | 24f92b6c842bfa3701cb708e4aee3c991f206c9d (diff) | |
| download | mailman-3d65590999f5288307ecb0df6ae1b77241869f61.tar.gz mailman-3d65590999f5288307ecb0df6ae1b77241869f61.tar.zst mailman-3d65590999f5288307ecb0df6ae1b77241869f61.zip | |
* Make IDomainManager a utility, since the config object is global.
* Give IMailingList a .domain attribute which looks up the IDomain for its
.host_name. This cleans up a lot of code.
* Add a test for the 'confirm' email command.
* Suppress blank lines in email command responses.
* Make the IDomainCollection a utility.
Diffstat (limited to 'src/mailman/pipeline/docs/cook-headers.txt')
| -rw-r--r-- | src/mailman/pipeline/docs/cook-headers.txt | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mailman/pipeline/docs/cook-headers.txt b/src/mailman/pipeline/docs/cook-headers.txt index 127cd8aeb..fcb66bdbf 100644 --- a/src/mailman/pipeline/docs/cook-headers.txt +++ b/src/mailman/pipeline/docs/cook-headers.txt @@ -225,8 +225,8 @@ There are some circumstances when the list administrator wants to explicitly set the List-ID header. Start by creating a new domain. >>> from mailman.interfaces.domain import IDomainManager - >>> manager = IDomainManager(config) - >>> domain = manager.add('mail.example.net') + >>> from zope.component import getUtility + >>> domain = getUtility(IDomainManager).add('mail.example.net') >>> mlist.host_name = 'mail.example.net' >>> process(mlist, msg, {}) |
