summaryrefslogtreecommitdiff
path: root/src/mailman/interfaces
diff options
context:
space:
mode:
authorBarry Warsaw2015-03-29 17:14:09 -0400
committerBarry Warsaw2015-03-29 17:14:09 -0400
commit9de0ea02dc757e41a5013bb41e68d04f44ed5066 (patch)
tree9ffe836a512f11423eb7e91ce3ee1e01d7ed188d /src/mailman/interfaces
parent2c49b7535bf9989b3e0aeb0ae209d9f0a6a9be9e (diff)
downloadmailman-9de0ea02dc757e41a5013bb41e68d04f44ed5066.tar.gz
mailman-9de0ea02dc757e41a5013bb41e68d04f44ed5066.tar.zst
mailman-9de0ea02dc757e41a5013bb41e68d04f44ed5066.zip
Refactorings and tests.
* Move the basic Workflow class to a module in mailman.app. * Rename the interface and model modules. * Update the configure.zcml. * Minor style fixes. * Add a test for the workflow model.
Diffstat (limited to 'src/mailman/interfaces')
-rw-r--r--src/mailman/interfaces/workflow.py (renamed from src/mailman/interfaces/workflowstate.py)18
1 files changed, 7 insertions, 11 deletions
diff --git a/src/mailman/interfaces/workflowstate.py b/src/mailman/interfaces/workflow.py
index 186386170..b5aeec093 100644
--- a/src/mailman/interfaces/workflowstate.py
+++ b/src/mailman/interfaces/workflow.py
@@ -1,4 +1,4 @@
-# Copyright (C) 2007-2015 by the Free Software Foundation, Inc.
+# Copyright (C) 2015 by the Free Software Foundation, Inc.
#
# This file is part of GNU Mailman.
#
@@ -15,7 +15,7 @@
# You should have received a copy of the GNU General Public License along with
# GNU Mailman. If not, see <http://www.gnu.org/licenses/>.
-"""Interface describing the state of a workflow."""
+"""Interfaces describing the state of a workflow."""
__all__ = [
'IWorkflowState',
@@ -23,24 +23,20 @@ __all__ = [
]
-from zope.interface import Interface, Attribute
+from zope.interface import Attribute, Interface
class IWorkflowState(Interface):
"""The state of a workflow."""
- name = Attribute(
- """The name of the workflow.""")
+ name = Attribute('The name of the workflow.')
- key = Attribute(
- """A unique key identifying the workflow instance.""")
+ key = Attribute('A unique key identifying the workflow instance.')
- step = Attribute(
- """This workflow's next step.""")
+ step = Attribute("This workflow's next step.")
- data = Attribute(
- """Additional data (may be JSON-encodedeJSON .""")
+ data = Attribute('Additional data (may be JSON-encodedeJSON .')