summaryrefslogtreecommitdiff
path: root/src/mailman/pipeline/docs/avoid-duplicates.txt
diff options
context:
space:
mode:
authorBarry Warsaw2009-08-26 10:51:52 -0400
committerBarry Warsaw2009-08-26 10:51:52 -0400
commit9612486f46d88d2221349d12de9d61abb7bab39f (patch)
tree88cb073ac19d0478aa6c89f72123dd4eefb27985 /src/mailman/pipeline/docs/avoid-duplicates.txt
parent9ad8c1e5524bc9479fd356757016ec160f392dd7 (diff)
downloadmailman-9612486f46d88d2221349d12de9d61abb7bab39f.tar.gz
mailman-9612486f46d88d2221349d12de9d61abb7bab39f.tar.zst
mailman-9612486f46d88d2221349d12de9d61abb7bab39f.zip
Diffstat (limited to 'src/mailman/pipeline/docs/avoid-duplicates.txt')
-rw-r--r--src/mailman/pipeline/docs/avoid-duplicates.txt11
1 files changed, 7 insertions, 4 deletions
diff --git a/src/mailman/pipeline/docs/avoid-duplicates.txt b/src/mailman/pipeline/docs/avoid-duplicates.txt
index aef50aa6e..9b44d0ebe 100644
--- a/src/mailman/pipeline/docs/avoid-duplicates.txt
+++ b/src/mailman/pipeline/docs/avoid-duplicates.txt
@@ -12,11 +12,14 @@ recipients from the list of recipients that earlier handler modules
Create some members we're going to use.
+ >>> from mailman.interfaces.usermanager import IUserManager
+ >>> from zope.component import getUtility
+ >>> user_manager = getUtility(IUserManager)
+
+ >>> address_a = user_manager.create_address('aperson@example.com')
+ >>> address_b = user_manager.create_address('bperson@example.com')
+
>>> from mailman.interfaces.member import MemberRole
- >>> address_a = config.db.user_manager.create_address(
- ... 'aperson@example.com')
- >>> address_b = config.db.user_manager.create_address(
- ... 'bperson@example.com')
>>> member_a = address_a.subscribe(mlist, MemberRole.member)
>>> member_b = address_b.subscribe(mlist, MemberRole.member)
>>> # This is the message metadata dictionary as it would be produced by