summaryrefslogtreecommitdiff
path: root/src/mailman/commands/eml_membership.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/mailman/commands/eml_membership.py')
-rw-r--r--src/mailman/commands/eml_membership.py12
1 files changed, 5 insertions, 7 deletions
diff --git a/src/mailman/commands/eml_membership.py b/src/mailman/commands/eml_membership.py
index d6f7a47d9..860e42f47 100644
--- a/src/mailman/commands/eml_membership.py
+++ b/src/mailman/commands/eml_membership.py
@@ -30,7 +30,7 @@ __all__ = [
from email.utils import formataddr, parseaddr
from zope.component import getUtility
-from zope.interface import implements
+from zope.interface import implementer
from mailman.core.i18n import _
from mailman.interfaces.command import ContinueProcessing, IEmailCommand
@@ -41,11 +41,10 @@ from mailman.interfaces.usermanager import IUserManager
+@implementer(IEmailCommand)
class Join:
"""The email 'join' command."""
- implements(IEmailCommand)
-
name = 'join'
# XXX 2012-02-29 BAW: DeliveryMode.summary is not yet supported.
argument_description = '[digest=<no|mime|plain>]'
@@ -89,7 +88,7 @@ used.
if len(members) > 0:
print(_('$person is already a member'), file=results)
else:
- getUtility(IRegistrar).register(mlist, address,
+ getUtility(IRegistrar).register(mlist, address,
display_name, delivery_mode)
print(_('Confirmation email sent to $person'), file=results)
return ContinueProcessing.yes
@@ -131,14 +130,13 @@ class Subscribe(Join):
+@implementer(IEmailCommand)
class Leave:
"""The email 'leave' command."""
- implements(IEmailCommand)
-
name = 'leave'
argument_description = ''
- description = _("""Leave this mailing list.
+ description = _("""Leave this mailing list.
You may be asked to confirm your request.""")
short_description = _('Leave this mailing list.')