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: ...@@ -639,10 +639,10 @@ if WITH_LEGACY_WORKFLOW:
deprecated('getWorkflowIds() is deprecated; use objectIds()')\ deprecated('getWorkflowIds() is deprecated; use objectIds()')\
(lambda self: self.objectIds()) (lambda self: self.objectIds())
WorkflowTool.security.declarePrivate('getWorkflowIds') WorkflowTool.security.declarePrivate('getWorkflowIds')
WorkflowTool.getWorkflowById = \
deprecated('getWorkflowById() is deprecated')\ # XXX We still use portal_workflow.getInfoFor, that calls WorkflowTool.getWorkflowById
(lambda self, wf_id: self._getOb(wf_id, None)) WorkflowTool.getWorkflowById = lambda self, wf_id: self._getOb(wf_id, None)
WorkflowTool.security.declarePrivate('getWorkflowById') WorkflowTool.security.declarePrivate('getWorkflowById')
InitializeClass(WorkflowTool) 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