diff options
| author | Mark Sapiro | 2016-10-22 12:24:00 -0700 |
|---|---|---|
| committer | Mark Sapiro | 2016-10-22 12:24:00 -0700 |
| commit | cbb0847d59fb8b77f634a7209b0dc8170023b6f5 (patch) | |
| tree | 2469f7eb074a4ab6d9579133987b7fde503732a4 /src/mailman/app/workflow.py | |
| parent | d1954d1705a987524bb25ecb8cdbace6de56fa5b (diff) | |
| parent | 3cf613f56e44bed4bc45f533e6f6263288e66460 (diff) | |
| download | mailman-cbb0847d59fb8b77f634a7209b0dc8170023b6f5.tar.gz mailman-cbb0847d59fb8b77f634a7209b0dc8170023b6f5.tar.zst mailman-cbb0847d59fb8b77f634a7209b0dc8170023b6f5.zip | |
Diffstat (limited to 'src/mailman/app/workflow.py')
| -rw-r--r-- | src/mailman/app/workflow.py | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/src/mailman/app/workflow.py b/src/mailman/app/workflow.py index eec8a14a8..36fd7d611 100644 --- a/src/mailman/app/workflow.py +++ b/src/mailman/app/workflow.py @@ -110,7 +110,7 @@ class Workflow: # Stop executing, but not before we push the last state back # onto the deque. Otherwise, resuming the state machine would # skip this step. - self._next.appendleft(step) + self._next.appendleft(name) break results.append(step()) return results @@ -132,15 +132,11 @@ class Workflow: raise AssertionError( "Can't save a workflow state with more than one step " "in the queue") - state_manager.save( - self.__class__.__name__, - self.token, - step, - json.dumps(data)) + state_manager.save(self.token, step, json.dumps(data)) def restore(self): state_manager = getUtility(IWorkflowStateManager) - state = state_manager.restore(self.__class__.__name__, self.token) + state = state_manager.restore(self.token) if state is None: # The token doesn't exist in the database. raise LookupError(self.token) |
