summaryrefslogtreecommitdiff
path: root/src/mailman/commands/eml_membership.py
diff options
context:
space:
mode:
authorBarry Warsaw2016-09-01 07:39:10 -0400
committerBarry Warsaw2016-09-01 07:39:10 -0400
commit9f7fa58e81c2bc639645383a12b8136e2cf2cb4b (patch)
tree6b62af3b55c938a99323c7bfefa1ecbeae5c10ae /src/mailman/commands/eml_membership.py
parent1cf46c8819609239a9e455fd5133228fd43cd604 (diff)
downloadmailman-9f7fa58e81c2bc639645383a12b8136e2cf2cb4b.tar.gz
mailman-9f7fa58e81c2bc639645383a12b8136e2cf2cb4b.tar.zst
mailman-9f7fa58e81c2bc639645383a12b8136e2cf2cb4b.zip
Diffstat (limited to 'src/mailman/commands/eml_membership.py')
-rw-r--r--src/mailman/commands/eml_membership.py12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/mailman/commands/eml_membership.py b/src/mailman/commands/eml_membership.py
index fad1cbe50..4e2e78f5d 100644
--- a/src/mailman/commands/eml_membership.py
+++ b/src/mailman/commands/eml_membership.py
@@ -22,8 +22,8 @@ from mailman import public
from mailman.core.i18n import _
from mailman.interfaces.command import ContinueProcessing, IEmailCommand
from mailman.interfaces.member import DeliveryMode, MemberRole
-from mailman.interfaces.workflowmanager import IWorkflowManager
-from mailman.interfaces.subscriptions import ISubscriptionService
+from mailman.interfaces.subscriptions import (
+ ISubscriptionManager, ISubscriptionService)
from mailman.interfaces.usermanager import IUserManager
from zope.component import getAdapter, getUtility
from zope.interface import implementer
@@ -31,7 +31,7 @@ from zope.interface import implementer
def match_subscriber(email, display_name):
# Return something matching the email which should be used as the
- # subscriber by the IWorkflowManager interface.
+ # subscriber by the ISubscriptionManager interface.
manager = getUtility(IUserManager)
# Is there a user with a preferred address matching the email?
user = manager.get_user(email)
@@ -102,7 +102,7 @@ used.
return ContinueProcessing.yes
subscriber = match_subscriber(email, display_name)
getAdapter(
- mlist, IWorkflowManager, name='subscribe').register(subscriber)
+ mlist, ISubscriptionManager, name='subscribe').register(subscriber)
print(_('Confirmation email sent to $person'), file=results)
return ContinueProcessing.yes
@@ -187,8 +187,8 @@ You may be asked to confirm your request.""")
'$self.name: $email is not a member of $mlist.fqdn_listname'),
file=results)
return ContinueProcessing.no
- getAdapter(
- mlist, IWorkflowManager, name='unsubscribe').register(user_address)
+ getAdapter(mlist, ISubscriptionManager, name='unsubscribe').register(
+ user_address)
# member.unsubscribe()
person = formataddr((user.display_name, email)) # noqa
print(_('Confirmation email sent to $person to leave'