summaryrefslogtreecommitdiff
path: root/src/mailman/interfaces/subscriptions.py
diff options
context:
space:
mode:
authorJ08nY2017-07-05 01:07:37 +0200
committerJ08nY2017-08-30 13:18:40 +0200
commitd173b42e5ff5d90167091e6a015d394c2ddd8678 (patch)
treeaa1f5da977690822e80ce61b7b4cfddd0375cb62 /src/mailman/interfaces/subscriptions.py
parent34bf9690fd808d1ece8f6c2d674605fc25018894 (diff)
downloadmailman-d173b42e5ff5d90167091e6a015d394c2ddd8678.tar.gz
mailman-d173b42e5ff5d90167091e6a015d394c2ddd8678.tar.zst
mailman-d173b42e5ff5d90167091e6a015d394c2ddd8678.zip
Migrate the [un]subscription_policy attribute.
- This is quite a huge commit, since it changes the type of the MailingList.subscription_policy and unsubscription_policy attributes to the new names of pluggable workflows, in all occurences. - Also adds a migration to migrate the attributes to the new types. - Adds tests for the migration.
Diffstat (limited to 'src/mailman/interfaces/subscriptions.py')
-rw-r--r--src/mailman/interfaces/subscriptions.py6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/mailman/interfaces/subscriptions.py b/src/mailman/interfaces/subscriptions.py
index 8de517c09..40c66cb1f 100644
--- a/src/mailman/interfaces/subscriptions.py
+++ b/src/mailman/interfaces/subscriptions.py
@@ -218,8 +218,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 +269,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