diff options
| author | Barry Warsaw | 2011-08-17 19:10:39 -0400 |
|---|---|---|
| committer | Barry Warsaw | 2011-08-17 19:10:39 -0400 |
| commit | 6e7bfd50436c702aea5d392adcf2d63340ed3f69 (patch) | |
| tree | dd315c07292da225a52caa87d0b00ec6f8558dc9 /src/mailman/app/docs | |
| parent | 441408fed20242e62d4e8f7b151ac8ec89c61ca4 (diff) | |
| download | mailman-6e7bfd50436c702aea5d392adcf2d63340ed3f69.tar.gz mailman-6e7bfd50436c702aea5d392adcf2d63340ed3f69.tar.zst mailman-6e7bfd50436c702aea5d392adcf2d63340ed3f69.zip | |
Basic infrastructure for fixing bug 827036.
* Use zope.events to signal when a mailing list has been created or deleted.
* Register a handler for the ListDeletedEvent which cleans up member
subscriptions.
* Relax the criteria for find_members(), both internally and in the REST API,
so that the subscriber is not required. E.g. you can now find all members
of a mailing list.
Diffstat (limited to 'src/mailman/app/docs')
| -rw-r--r-- | src/mailman/app/docs/subscriptions.rst | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/src/mailman/app/docs/subscriptions.rst b/src/mailman/app/docs/subscriptions.rst index 378dd0a40..8291132ce 100644 --- a/src/mailman/app/docs/subscriptions.rst +++ b/src/mailman/app/docs/subscriptions.rst @@ -79,7 +79,7 @@ If you know the member id for a specific member, you can get that member. <Member: anne <anne@example.com> on test@example.com as MemberRole.owner> If you know the member's address, you can find all their memberships, based on -specific search criteria. At a minimum, you need the member's email address. +specific search criteria. :: >>> mlist2 = create_list('foo@example.com') @@ -121,6 +121,17 @@ Memberships can also be searched for by user id. <Member: anne <anne@example.com> on test@example.com as MemberRole.moderator>] +You can find all the memberships for a specific mailing list. + + >>> service.find_members(fqdn_listname='test@example.com') + [<Member: anne <anne@example.com> on test@example.com + as MemberRole.member>, + <Member: anne <anne@example.com> on test@example.com as MemberRole.owner>, + <Member: anne <anne@example.com> on test@example.com + as MemberRole.moderator>, + <Member: Bart Person <bart@example.com> on test@example.com + as MemberRole.member>] + You can find all the memberships for an address on a specific mailing list. >>> service.find_members('anne@example.com', 'test@example.com') |
