summaryrefslogtreecommitdiff
path: root/src/mailman/interfaces/command.py
diff options
context:
space:
mode:
authorBarry Warsaw2016-03-25 10:13:48 -0400
committerBarry Warsaw2016-03-25 10:13:48 -0400
commita681354cadf48394127796eb111c2904283c9288 (patch)
tree87377966491672f981d6567d78debd384004d11b /src/mailman/interfaces/command.py
parentb9c06627e46ff1e9f09965228ab3b48f217109af (diff)
downloadmailman-a681354cadf48394127796eb111c2904283c9288.tar.gz
mailman-a681354cadf48394127796eb111c2904283c9288.tar.zst
mailman-a681354cadf48394127796eb111c2904283c9288.zip
Diffstat (limited to 'src/mailman/interfaces/command.py')
-rw-r--r--src/mailman/interfaces/command.py17
1 files changed, 5 insertions, 12 deletions
diff --git a/src/mailman/interfaces/command.py b/src/mailman/interfaces/command.py
index 9ccb9a0f4..76bf8aa1c 100644
--- a/src/mailman/interfaces/command.py
+++ b/src/mailman/interfaces/command.py
@@ -17,33 +17,26 @@
"""Interfaces defining email commands."""
-__all__ = [
- 'ContinueProcessing',
- 'ICLISubCommand',
- 'IEmailCommand',
- 'IEmailResults',
- ]
-
-
from enum import Enum
+from mailman import public
from zope.interface import Interface, Attribute
-
+@public
class ContinueProcessing(Enum):
"""Should `IEmailCommand.process()` continue or not."""
no = 0
yes = 1
-
+@public
class IEmailResults(Interface):
"""The email command results object."""
output = Attribute('An output file object for printing results to.')
-
+@public
class IEmailCommand(Interface):
"""An email command."""
@@ -66,7 +59,7 @@ class IEmailCommand(Interface):
"""
-
+@public
class ICLISubCommand(Interface):
"""A command line interface subcommand."""