Commit 28b4b758 authored by Kazuhiko Shiozaki's avatar Kazuhiko Shiozaki

workflow: getWorkflowId is still used.

parent e236bd88
......@@ -639,10 +639,10 @@ if WITH_LEGACY_WORKFLOW:
deprecated('getWorkflowIds() is deprecated; use objectIds()')\
(lambda self: self.objectIds())
WorkflowTool.security.declarePrivate('getWorkflowIds')
WorkflowTool.getWorkflowById = \
deprecated('getWorkflowById() is deprecated')\
(lambda self, wf_id: self._getOb(wf_id, None))
WorkflowTool.security.declarePrivate('getWorkflowById')
# XXX We still use portal_workflow.getInfoFor, that calls WorkflowTool.getWorkflowById
WorkflowTool.getWorkflowById = lambda self, wf_id: self._getOb(wf_id, None)
WorkflowTool.security.declarePrivate('getWorkflowById')
InitializeClass(WorkflowTool)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment