diff options
| author | Barry Warsaw | 2015-04-13 10:46:37 -0400 |
|---|---|---|
| committer | Barry Warsaw | 2015-04-13 10:46:37 -0400 |
| commit | 9806f9c751f85b6ad6e9dea58d9e3dde36c7f2bc (patch) | |
| tree | 86ab2380dbd62e98af7e532c203b3cef16d9e441 /src/mailman/interfaces | |
| parent | f7bfdc4f04f8a8c709695cb37a4cdfa08e670a5a (diff) | |
| download | mailman-9806f9c751f85b6ad6e9dea58d9e3dde36c7f2bc.tar.gz mailman-9806f9c751f85b6ad6e9dea58d9e3dde36c7f2bc.tar.zst mailman-9806f9c751f85b6ad6e9dea58d9e3dde36c7f2bc.zip | |
Diffstat (limited to 'src/mailman/interfaces')
| -rw-r--r-- | src/mailman/interfaces/workflow.py | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/mailman/interfaces/workflow.py b/src/mailman/interfaces/workflow.py index 49fbc85d4..4a4fb4412 100644 --- a/src/mailman/interfaces/workflow.py +++ b/src/mailman/interfaces/workflow.py @@ -32,7 +32,7 @@ class IWorkflowState(Interface): name = Attribute('The name of the workflow.') - key = Attribute('A unique key identifying the workflow instance.') + token = Attribute('A unique key identifying the workflow instance.') step = Attribute("This workflow's next step.") @@ -43,24 +43,24 @@ class IWorkflowState(Interface): class IWorkflowStateManager(Interface): """The workflow states manager.""" - def save(name, key, step, data=None): + def save(name, token, step, data=None): """Save the state of a workflow. :param name: The name of the workflow. :type name: str - :param key: A unique key identifying this workflow instance. - :type key: str + :param token: A unique token identifying this workflow instance. + :type token: str :param step: The next step for this workflow. :type step: str :param data: Additional data (workflow-specific). :type data: str """ - def restore(name, key): + def restore(name, 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 key: A unique key identifying this workflow instance. - :type key: str + :param token: A unique token identifying this workflow instance. + :type token: str """ |
