diff options
| author | Barry Warsaw | 2016-08-30 21:02:06 -0400 |
|---|---|---|
| committer | Barry Warsaw | 2016-08-30 21:02:06 -0400 |
| commit | 9a1f39362e47a26811bcf9f0dfe6f46f3c9d6ea3 (patch) | |
| tree | 66acc7b0c1e38a9e8dd446d7b12d219a5d0c0896 /src/mailman/commands | |
| parent | 5db5eb3417983ff6ea4c7979028bb525c4d1e332 (diff) | |
| download | mailman-9a1f39362e47a26811bcf9f0dfe6f46f3c9d6ea3.tar.gz mailman-9a1f39362e47a26811bcf9f0dfe6f46f3c9d6ea3.tar.zst mailman-9a1f39362e47a26811bcf9f0dfe6f46f3c9d6ea3.zip | |
Checkpointing
Diffstat (limited to 'src/mailman/commands')
| -rw-r--r-- | src/mailman/commands/eml_membership.py | 10 | ||||
| -rw-r--r-- | src/mailman/commands/tests/test_confirm.py | 2 |
2 files changed, 6 insertions, 6 deletions
diff --git a/src/mailman/commands/eml_membership.py b/src/mailman/commands/eml_membership.py index af391fd5b..fad1cbe50 100644 --- a/src/mailman/commands/eml_membership.py +++ b/src/mailman/commands/eml_membership.py @@ -25,7 +25,7 @@ from mailman.interfaces.member import DeliveryMode, MemberRole from mailman.interfaces.workflowmanager import IWorkflowManager from mailman.interfaces.subscriptions import ISubscriptionService from mailman.interfaces.usermanager import IUserManager -from zope.component import getUtility, getAdapter +from zope.component import getAdapter, getUtility from zope.interface import implementer @@ -101,8 +101,8 @@ used. print(_('$person is already a member'), file=results) return ContinueProcessing.yes subscriber = match_subscriber(email, display_name) - getAdapter(mlist, - IWorkflowManager, name='subscribe').register(subscriber) + getAdapter( + mlist, IWorkflowManager, 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, IWorkflowManager, name='unsubscribe').register(user_address) # member.unsubscribe() person = formataddr((user.display_name, email)) # noqa print(_('Confirmation email sent to $person to leave' diff --git a/src/mailman/commands/tests/test_confirm.py b/src/mailman/commands/tests/test_confirm.py index d7414fbfa..797edcad5 100644 --- a/src/mailman/commands/tests/test_confirm.py +++ b/src/mailman/commands/tests/test_confirm.py @@ -30,7 +30,7 @@ from mailman.interfaces.usermanager import IUserManager from mailman.runners.command import CommandRunner, Results from mailman.testing.helpers import get_queue_messages, make_testable_runner from mailman.testing.layers import ConfigLayer -from zope.component import getUtility, getAdapter +from zope.component import getAdapter, getUtility class TestConfirm(unittest.TestCase): |
