diff options
| author | Barry Warsaw | 2015-03-29 16:30:30 -0400 |
|---|---|---|
| committer | Barry Warsaw | 2015-03-29 16:30:30 -0400 |
| commit | 2c49b7535bf9989b3e0aeb0ae209d9f0a6a9be9e (patch) | |
| tree | d20fc2c3c76e5ff303afea9820e79cac696fa68c /src/mailman/interfaces/mailinglist.py | |
| parent | db5311200674432669787ef05d019536d3011c4e (diff) | |
| parent | b62a026ad136147d9f1e1e9604f98bd4d98a3389 (diff) | |
| download | mailman-2c49b7535bf9989b3e0aeb0ae209d9f0a6a9be9e.tar.gz mailman-2c49b7535bf9989b3e0aeb0ae209d9f0a6a9be9e.tar.zst mailman-2c49b7535bf9989b3e0aeb0ae209d9f0a6a9be9e.zip | |
Merge abompard's subpolicy branch port with trunk. Still a WIP.
Diffstat (limited to 'src/mailman/interfaces/mailinglist.py')
| -rw-r--r-- | src/mailman/interfaces/mailinglist.py | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/src/mailman/interfaces/mailinglist.py b/src/mailman/interfaces/mailinglist.py index 23d2fadf4..f112b2a11 100644 --- a/src/mailman/interfaces/mailinglist.py +++ b/src/mailman/interfaces/mailinglist.py @@ -25,6 +25,7 @@ __all__ = [ 'IMailingList', 'Personalization', 'ReplyToMunging', + 'SubscriptionPolicy', ] @@ -53,6 +54,18 @@ class ReplyToMunging(Enum): explicit_header = 2 +class SubscriptionPolicy(Enum): + # Neither confirmation, nor moderator approval is required. + open = 0 + # The user must confirm the subscription. + confirm = 1 + # The moderator must approve the subscription. + moderate = 2 + # The user must first confirm their subscription, and then if that is + # successful, the moderator must also approve it. + confirm_then_moderate = 3 + + class IMailingList(Interface): """A mailing list.""" @@ -234,6 +247,9 @@ class IMailingList(Interface): deliver disabled or not, or of the type of digest they are to receive.""") + subscription_policy = Attribute( + """The policy for subscribing new members to the list.""") + subscribers = Attribute( """An iterator over all IMembers subscribed to this list, with any role. |
