Handle save/restore of the subscription workflow.
commit9806f9c751f85b6ad6e9dea58d9e3dde36c7f2bc
authorBarry Warsaw <barry@list.org>
Mon, 13 Apr 2015 14:46:37 +0000 (13 10:46 -0400)
committerBarry Warsaw <barry@list.org>
Mon, 13 Apr 2015 14:46:37 +0000 (13 10:46 -0400)
tree86ab2380dbd62e98af7e532c203b3cef16d9e441
parentf7bfdc4f04f8a8c709695cb37a4cdfa08e670a5a
Handle save/restore of the subscription workflow.

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.
TODO.rst
src/mailman/app/subscriptions.py
src/mailman/app/tests/test_subscriptions.py
src/mailman/interfaces/workflow.py
src/mailman/model/tests/test_usermanager.py
src/mailman/model/tests/test_workflow.py
src/mailman/model/workflow.py