diff options
| author | J08nY | 2017-08-07 19:00:49 +0200 |
|---|---|---|
| committer | J08nY | 2017-08-07 19:00:49 +0200 |
| commit | ee9da27283ffb7adc836f764f1442cd06e3fb2a5 (patch) | |
| tree | 2b687f39714580b1de70baf9e3dd9957326c4989 /src/mailman/interfaces/subscriptions.py | |
| parent | d107fd41f03b57f7731b60bb7ba921febc3ce3b9 (diff) | |
| parent | b902d7858d8302d248add89a5983c521c3581c4c (diff) | |
| download | mailman-ee9da27283ffb7adc836f764f1442cd06e3fb2a5.tar.gz mailman-ee9da27283ffb7adc836f764f1442cd06e3fb2a5.tar.zst mailman-ee9da27283ffb7adc836f764f1442cd06e3fb2a5.zip | |
Diffstat (limited to 'src/mailman/interfaces/subscriptions.py')
| -rw-r--r-- | src/mailman/interfaces/subscriptions.py | 33 |
1 files changed, 2 insertions, 31 deletions
diff --git a/src/mailman/interfaces/subscriptions.py b/src/mailman/interfaces/subscriptions.py index 8de517c09..4a82da096 100644 --- a/src/mailman/interfaces/subscriptions.py +++ b/src/mailman/interfaces/subscriptions.py @@ -78,33 +78,6 @@ class TokenOwner(Enum): @public -class SubscriptionConfirmationNeededEvent: - """Triggered when a subscription needs confirmation. - - Addresses must be verified before they can receive messages or post - to mailing list. The confirmation message is sent to the user when - this event is triggered. - """ - def __init__(self, mlist, token, email): - self.mlist = mlist - self.token = token - self.email = email - - -@public -class UnsubscriptionConfirmationNeededEvent: - """Triggered when an unsubscription request needs confirmation. - - The confirmation message is sent to the user when this event is - triggered. - """ - def __init__(self, mlist, token, email): - self.mlist = mlist - self.token = token - self.email = email - - -@public class ISubscriptionService(Interface): """General subscription services.""" @@ -218,8 +191,7 @@ class ISubscriptionManager(Interface): To use this, adapt an ``IMailingList`` to this interface. """ - def register(subscriber=None, *, - pre_verified=False, pre_confirmed=False, pre_approved=False): + def register(subscriber=None, **kwargs): """Subscribe an address or user according to subscription policies. The mailing list's subscription policy is used to subscribe @@ -270,8 +242,7 @@ class ISubscriptionManager(Interface): appears in the global or list-centric bans. """ - def unregister(subscriber=None, *, - pre_confirmed=False, pre_approved=False): + def unregister(subscriber=None, **kwargs): """Unsubscribe an address or user according to subscription policies. The mailing list's unsubscription policy is used to unsubscribe |
