Remove the mailman.interface magic. Use the more specific interface imports.
[mailman.git] / mailman / commands / end.py
bloba9298bc92b54e4f3f6a30c0c0b90f6537edd25bf
1 # Copyright (C) 2002-2009 by the Free Software Foundation, Inc.
3 # This file is part of GNU Mailman.
5 # GNU Mailman is free software: you can redistribute it and/or modify it under
6 # the terms of the GNU General Public License as published by the Free
7 # Software Foundation, either version 3 of the License, or (at your option)
8 # any later version.
10 # GNU Mailman is distributed in the hope that it will be useful, but WITHOUT
11 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
12 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
13 # more details.
15 # You should have received a copy of the GNU General Public License along with
16 # GNU Mailman. If not, see <http://www.gnu.org/licenses/>.
18 """The email commands 'end' and 'stop'."""
20 __metaclass__ = type
21 __all__ = [
22 'End',
23 'Stop',
27 from zope.interface import implements
29 from mailman.i18n import _
30 from mailman.interfaces.command import ContinueProcessing, IEmailCommand
34 class End:
35 """The email 'end' command."""
36 implements(IEmailCommand)
38 name = 'end'
39 argument_description = ''
40 description = _('Stop processing commands.')
42 def process(self, mlist, msg, msgdata, arguments, results):
43 """See `IEmailCommand`."""
44 # Ignore all arguments.
45 return ContinueProcessing.no
48 class Stop(End):
49 """The email 'stop' command (an alias for 'end')."""
51 name = 'stop'