summaryrefslogtreecommitdiff
path: root/src/mailman/interfaces/workflow.py
diff options
context:
space:
mode:
authorMark Sapiro2016-10-22 12:24:00 -0700
committerMark Sapiro2016-10-22 12:24:00 -0700
commitcbb0847d59fb8b77f634a7209b0dc8170023b6f5 (patch)
tree2469f7eb074a4ab6d9579133987b7fde503732a4 /src/mailman/interfaces/workflow.py
parentd1954d1705a987524bb25ecb8cdbace6de56fa5b (diff)
parent3cf613f56e44bed4bc45f533e6f6263288e66460 (diff)
downloadmailman-cbb0847d59fb8b77f634a7209b0dc8170023b6f5.tar.gz
mailman-cbb0847d59fb8b77f634a7209b0dc8170023b6f5.tar.zst
mailman-cbb0847d59fb8b77f634a7209b0dc8170023b6f5.zip
Diffstat (limited to 'src/mailman/interfaces/workflow.py')
-rw-r--r--src/mailman/interfaces/workflow.py14
1 files changed, 3 insertions, 11 deletions
diff --git a/src/mailman/interfaces/workflow.py b/src/mailman/interfaces/workflow.py
index bf2138959..9846f4683 100644
--- a/src/mailman/interfaces/workflow.py
+++ b/src/mailman/interfaces/workflow.py
@@ -25,8 +25,6 @@ from zope.interface import Attribute, Interface
class IWorkflowState(Interface):
"""The state of a workflow."""
- name = Attribute('The name of the workflow.')
-
token = Attribute('A unique key identifying the workflow instance.')
step = Attribute("This workflow's next step.")
@@ -38,11 +36,9 @@ class IWorkflowState(Interface):
class IWorkflowStateManager(Interface):
"""The workflow states manager."""
- def save(name, token, step, data=None):
+ def save(token, step, data=None):
"""Save the state of a workflow.
- :param name: The name of the workflow.
- :type name: str
:param token: A unique token identifying this workflow instance.
:type token: str
:param step: The next step for this workflow.
@@ -51,11 +47,9 @@ class IWorkflowStateManager(Interface):
:type data: str
"""
- def restore(name, token):
+ def restore(token):
"""Get the saved state for a workflow or None if nothing was saved.
- :param name: The name of the workflow.
- :type name: str
:param token: A unique token identifying this workflow instance.
:type token: str
:return: The saved state associated with this name/token pair, or None
@@ -63,11 +57,9 @@ class IWorkflowStateManager(Interface):
:rtype: ``IWorkflowState``
"""
- def discard(name, token):
+ def discard(token):
"""Throw away the saved state for a workflow.
- :param name: The name of the workflow.
- :type name: str
:param token: A unique token identifying this workflow instance.
:type token: str
"""