diff options
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 |
