summaryrefslogtreecommitdiff
path: root/mailman/pipeline/docs
diff options
context:
space:
mode:
authorBarry Warsaw2009-01-04 00:22:08 -0500
committerBarry Warsaw2009-01-04 00:22:08 -0500
commit59d2b6181ffa9517da97a6eb43a51396b1ff04f4 (patch)
tree58f2a968e5ccaf86e3dbc3616e3d8ab60c244632 /mailman/pipeline/docs
parentbad70b0046b5612bf1342703cf5de7580e66fb45 (diff)
downloadmailman-59d2b6181ffa9517da97a6eb43a51396b1ff04f4.tar.gz
mailman-59d2b6181ffa9517da97a6eb43a51396b1ff04f4.tar.zst
mailman-59d2b6181ffa9517da97a6eb43a51396b1ff04f4.zip
Diffstat (limited to 'mailman/pipeline/docs')
-rw-r--r--mailman/pipeline/docs/acknowledge.txt2
-rw-r--r--mailman/pipeline/docs/avoid-duplicates.txt2
-rw-r--r--mailman/pipeline/docs/calc-recips.txt2
-rw-r--r--mailman/pipeline/docs/cook-headers.txt3
-rw-r--r--mailman/pipeline/docs/file-recips.txt2
-rw-r--r--mailman/pipeline/docs/reply-to.txt2
-rw-r--r--mailman/pipeline/docs/to-outgoing.txt2
7 files changed, 8 insertions, 7 deletions
diff --git a/mailman/pipeline/docs/acknowledge.txt b/mailman/pipeline/docs/acknowledge.txt
index aabd8196a..a4c68f900 100644
--- a/mailman/pipeline/docs/acknowledge.txt
+++ b/mailman/pipeline/docs/acknowledge.txt
@@ -21,7 +21,7 @@ acknowledgment.
Subscribe a user to the mailing list.
>>> usermgr = config.db.user_manager
- >>> from mailman.interfaces import MemberRole
+ >>> from mailman.interfaces.member import MemberRole
>>> user_1 = usermgr.create_user(u'aperson@example.com')
>>> address_1 = list(user_1.addresses)[0]
>>> address_1.subscribe(mlist, MemberRole.member)
diff --git a/mailman/pipeline/docs/avoid-duplicates.txt b/mailman/pipeline/docs/avoid-duplicates.txt
index e1d31716a..fe91a9a71 100644
--- a/mailman/pipeline/docs/avoid-duplicates.txt
+++ b/mailman/pipeline/docs/avoid-duplicates.txt
@@ -11,7 +11,7 @@ recipients from the list of recipients that earlier handler modules
Create some members we're going to use.
- >>> from mailman.interfaces import MemberRole
+ >>> from mailman.interfaces.member import MemberRole
>>> address_a = config.db.user_manager.create_address(
... u'aperson@example.com')
>>> address_b = config.db.user_manager.create_address(
diff --git a/mailman/pipeline/docs/calc-recips.txt b/mailman/pipeline/docs/calc-recips.txt
index 550edff51..adfbeabbf 100644
--- a/mailman/pipeline/docs/calc-recips.txt
+++ b/mailman/pipeline/docs/calc-recips.txt
@@ -21,7 +21,7 @@ start out with. First, create a bunch of addresses...
...then subscribe these addresses to the mailing list as members...
- >>> from mailman.interfaces import MemberRole
+ >>> from mailman.interfaces.member import MemberRole
>>> member_a = address_a.subscribe(mlist, MemberRole.member)
>>> member_b = address_b.subscribe(mlist, MemberRole.member)
>>> member_c = address_c.subscribe(mlist, MemberRole.member)
diff --git a/mailman/pipeline/docs/cook-headers.txt b/mailman/pipeline/docs/cook-headers.txt
index eb1a4e6bc..732231e1f 100644
--- a/mailman/pipeline/docs/cook-headers.txt
+++ b/mailman/pipeline/docs/cook-headers.txt
@@ -300,7 +300,8 @@ messages are fully personalized, that header will get overwritten with the
address of the recipient. The list's posting address will be added to one of
the recipient headers so that users will be able to reply back to the list.
- >>> from mailman.interfaces import Personalization, ReplyToMunging
+ >>> from mailman.interfaces.mailinglist import (
+ ... Personalization, ReplyToMunging)
>>> mlist.personalize = Personalization.full
>>> mlist.reply_goes_to_list = ReplyToMunging.no_munging
>>> msg = message_from_string("""\
diff --git a/mailman/pipeline/docs/file-recips.txt b/mailman/pipeline/docs/file-recips.txt
index d006151ba..81510b6e7 100644
--- a/mailman/pipeline/docs/file-recips.txt
+++ b/mailman/pipeline/docs/file-recips.txt
@@ -78,7 +78,7 @@ However, if the sender of the original message is a member of the list and
their address is in the include file, the sender's address is /not/ included
in the recipients list.
- >>> from mailman.interfaces import MemberRole
+ >>> from mailman.interfaces.member import MemberRole
>>> address_1 = config.db.user_manager.create_address(
... u'cperson@example.com')
>>> address_1.subscribe(mlist, MemberRole.member)
diff --git a/mailman/pipeline/docs/reply-to.txt b/mailman/pipeline/docs/reply-to.txt
index 570ffb7ea..e57b97e5d 100644
--- a/mailman/pipeline/docs/reply-to.txt
+++ b/mailman/pipeline/docs/reply-to.txt
@@ -36,7 +36,7 @@ A list can be configured to add a Reply-To header pointing back to the mailing
list's posting address. If there's no Reply-To header in the original
message, the list's posting address simply gets inserted.
- >>> from mailman.interfaces import ReplyToMunging
+ >>> from mailman.interfaces.mailinglist import ReplyToMunging
>>> mlist.reply_goes_to_list = ReplyToMunging.point_to_list
>>> mlist.preferred_language = u'en'
>>> mlist.description = u''
diff --git a/mailman/pipeline/docs/to-outgoing.txt b/mailman/pipeline/docs/to-outgoing.txt
index 81e870e6c..e7f412690 100644
--- a/mailman/pipeline/docs/to-outgoing.txt
+++ b/mailman/pipeline/docs/to-outgoing.txt
@@ -68,7 +68,7 @@ VERP'd.
>>> from mailman import Defaults
>>> verp_personalized_delivieries = Defaults.VERP_PERSONALIZED_DELIVERIES
>>> Defaults.VERP_PERSONALIZED_DELIVERIES = True
- >>> from mailman.interfaces import Personalization
+ >>> from mailman.interfaces.mailinglist import Personalization
>>> mlist.personalize = Personalization.individual
>>> msgdata = dict(foo=1, bar=2)
>>> handler.process(mlist, msg, msgdata)