summaryrefslogtreecommitdiff
path: root/src/mailman/model/docs
diff options
context:
space:
mode:
authorBarry Warsaw2011-08-22 22:45:49 -0400
committerBarry Warsaw2011-08-22 22:45:49 -0400
commit35e4ca77838ac7bbeca3f8da6ea64a93a6e501d5 (patch)
tree7aeaf59aa71fae51b96df28623478a34c90a82b3 /src/mailman/model/docs
parent53b064d625e1718f6c053cd3692b91eff3f8c1d1 (diff)
downloadmailman-35e4ca77838ac7bbeca3f8da6ea64a93a6e501d5.tar.gz
mailman-35e4ca77838ac7bbeca3f8da6ea64a93a6e501d5.tar.zst
mailman-35e4ca77838ac7bbeca3f8da6ea64a93a6e501d5.zip
Rename IDomain.email_host to .mail_host for consistency. Similarly in the
REST API. (LP: #831660)
Diffstat (limited to 'src/mailman/model/docs')
-rw-r--r--src/mailman/model/docs/domains.rst (renamed from src/mailman/model/docs/domains.txt)6
-rw-r--r--src/mailman/model/docs/requests.rst (renamed from src/mailman/model/docs/requests.txt)2
2 files changed, 4 insertions, 4 deletions
diff --git a/src/mailman/model/docs/domains.txt b/src/mailman/model/docs/domains.rst
index 9fe43a5f1..4fa39aa2f 100644
--- a/src/mailman/model/docs/domains.txt
+++ b/src/mailman/model/docs/domains.rst
@@ -18,7 +18,7 @@ Domains are how Mailman interacts with email host names and web host names.
... if len(manager) == 0:
... print 'no domains'
... return
- ... for domain in sorted(manager, key=attrgetter('email_host')):
+ ... for domain in sorted(manager, key=attrgetter('mail_host')):
... print domain
>>> show_domains()
@@ -74,8 +74,8 @@ Domains can have explicit descriptions and contact addresses.
In the global domain manager, domains are indexed by their email host name.
::
- >>> for domain in sorted(manager, key=attrgetter('email_host')):
- ... print domain.email_host
+ >>> for domain in sorted(manager, key=attrgetter('mail_host')):
+ ... print domain.mail_host
example.com
example.net
diff --git a/src/mailman/model/docs/requests.txt b/src/mailman/model/docs/requests.rst
index 812d25a43..e01544490 100644
--- a/src/mailman/model/docs/requests.txt
+++ b/src/mailman/model/docs/requests.rst
@@ -312,7 +312,7 @@ indicates that the message has been approved.
>>> id_3 = moderator.hold_message(mlist, msg, msgdata, 'Needs approval')
>>> moderator.handle_message(mlist, id_3, Action.accept)
- >>> inq = config.switchboards['in']
+ >>> inq = config.switchboards['pipeline']
>>> qmsg, qdata = dequeue(inq)
>>> print qmsg.as_string()
From: aperson@example.org