[CMF-checkins] CVS: CMF - WorkflowTool.py:1.15
Jens Vagelpohl
jens@digicool.com
Wed, 13 Jun 2001 17:44:08 -0400 (EDT)
Update of /cvs-repository/CMF/CMFCore
In directory korak.digicool.com:/tmp/cvs-serv31876/CMFCore
Modified Files:
WorkflowTool.py
Log Message:
Added correct implementation for getWorkflowIds
--- Updated File WorkflowTool.py in package CMF --
--- WorkflowTool.py 2001/06/12 20:15:44 1.14
+++ WorkflowTool.py 2001/06/13 21:44:08 1.15
@@ -363,8 +363,13 @@
'''
Returns the list of workflow ids.
'''
- # To do...
- return self._default_chain
+ wf_ids = []
+
+ for obj_name, obj in self.objectItems():
+ if getattr(obj, '_isAWorkflow', 0):
+ wf_ids.append(obj_name)
+
+ return tuple(wf_ids)
security.declarePrivate('getWorkflowsFor')
def getWorkflowsFor(self, ob):