summaryrefslogtreecommitdiff
path: root/src/mailman/interfaces/workflow.py
diff options
context:
space:
mode:
authorBarry Warsaw2015-04-14 18:54:05 -0400
committerBarry Warsaw2015-04-14 18:54:05 -0400
commita9a9fd2c778aa8cfde5f244420602a70dab44cfa (patch)
treecf66ad5939a5c9eaa9342036a971d745d5a89398 /src/mailman/interfaces/workflow.py
parenteab98485ec133dcc745618e4fd5b6054c902af05 (diff)
downloadmailman-a9a9fd2c778aa8cfde5f244420602a70dab44cfa.tar.gz
mailman-a9a9fd2c778aa8cfde5f244420602a70dab44cfa.tar.zst
mailman-a9a9fd2c778aa8cfde5f244420602a70dab44cfa.zip
Diffstat (limited to 'src/mailman/interfaces/workflow.py')
-rw-r--r--src/mailman/interfaces/workflow.py17
1 files changed, 13 insertions, 4 deletions
diff --git a/src/mailman/interfaces/workflow.py b/src/mailman/interfaces/workflow.py
index b60537652..f80e38547 100644
--- a/src/mailman/interfaces/workflow.py
+++ b/src/mailman/interfaces/workflow.py
@@ -63,9 +63,18 @@ class IWorkflowStateManager(Interface):
:type name: str
:param token: A unique token identifying this workflow instance.
:type token: str
- :raises LookupError: when there's no token associated with the given
- name in the workflow table.
+ :return: The saved state associated with this name/token pair, or None
+ if the pair isn't in the database.
+ :rtype: ``IWorkflowState``
"""
- def count():
- """The number of saved workflows in the database."""
+ def discard(name, 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
+ """
+
+ count = Attribute('The number of saved workflows in the database.')