diff options
| author | Barry Warsaw | 2015-04-14 18:54:05 -0400 |
|---|---|---|
| committer | Barry Warsaw | 2015-04-14 18:54:05 -0400 |
| commit | a9a9fd2c778aa8cfde5f244420602a70dab44cfa (patch) | |
| tree | cf66ad5939a5c9eaa9342036a971d745d5a89398 /src/mailman/interfaces/workflow.py | |
| parent | eab98485ec133dcc745618e4fd5b6054c902af05 (diff) | |
| download | mailman-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.py | 17 |
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.') |
