summaryrefslogtreecommitdiff
path: root/src/mailman/interfaces
diff options
context:
space:
mode:
authorBarry Warsaw2016-09-13 19:43:34 +1200
committerBarry Warsaw2016-09-13 19:43:34 +1200
commit74c7d6d1d089864fe01a3f2502314c31508a4781 (patch)
tree13ebba81466850b64b4fb909018aa09694806d8f /src/mailman/interfaces
parente18e7ac34e8b4b2f88d5987ccb76a39c54c61c0c (diff)
downloadmailman-74c7d6d1d089864fe01a3f2502314c31508a4781.tar.gz
mailman-74c7d6d1d089864fe01a3f2502314c31508a4781.tar.zst
mailman-74c7d6d1d089864fe01a3f2502314c31508a4781.zip
Diffstat (limited to 'src/mailman/interfaces')
-rw-r--r--src/mailman/interfaces/subscriptions.py15
-rw-r--r--src/mailman/interfaces/template.py2
2 files changed, 15 insertions, 2 deletions
diff --git a/src/mailman/interfaces/subscriptions.py b/src/mailman/interfaces/subscriptions.py
index 9a20b9c0d..fb13d3d42 100644
--- a/src/mailman/interfaces/subscriptions.py
+++ b/src/mailman/interfaces/subscriptions.py
@@ -78,7 +78,7 @@ class TokenOwner(Enum):
@public
-class ConfirmationNeededEvent:
+class RegistrationConfirmationNeededEvent:
"""Triggered when an address needs confirmation.
Addresses must be verified before they can receive messages or post
@@ -92,6 +92,19 @@ class ConfirmationNeededEvent:
@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."""
diff --git a/src/mailman/interfaces/template.py b/src/mailman/interfaces/template.py
index 442f1eeda..e576eb882 100644
--- a/src/mailman/interfaces/template.py
+++ b/src/mailman/interfaces/template.py
@@ -171,7 +171,7 @@ ALL_TEMPLATES = {
'list:admin:notice:unrecognized',
'list:admin:notice:unsubscribe',
'list:member:digest:masthead',
- 'list:user:action:confirm',
+ 'list:user:action:subscribe',
'list:user:action:unsubscribe',
'list:user:notice:hold',
'list:user:notice:no-more-today',