summaryrefslogtreecommitdiff
path: root/src/mailman/model/workflow.py
Commit message (Collapse)AuthorAgeFilesLines
* Full test suite passes.Barry Warsaw2015-04-141-0/+8
| | | | | | | | | | | | | * Make sure Registrar.discard() removces any workflow state manager state associated with the token, and that this is flushed to SA. * Adjust the email commands to the new IRegistrar API. * Update the IRegistrar interface. * Add IWorkflowStateManager.discard() and make `count` an attribute/property. * Mark two tests as expected failures due to LP: #1444184.
* * Give the workflow state manager a count method.Barry Warsaw2015-04-131-8/+11
| | | | | * The workflow state manager no longer allows updates via .save(). * Restoring a workflow state evicts the record from the database.
* Handle save/restore of the subscription workflow.Barry Warsaw2015-04-131-6/+6
| | | | | | | | | | To handle the case of restoring a saved workflow, allow the subscriber to be None in the constructor, but assert that it is not None after the first workflow step. Add setters/getters for handling save/restore. In the base workflow interface, rename key to token.
* Refactorings and tests.Barry Warsaw2015-03-291-0/+65
* 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.