[CMF-checkins] CVS: Products/CMFCore - WorkflowTool.py:1.46.2.1

Yvo Schubbe y.2004_ at wcm-solutions.de
Tue Nov 16 14:11:35 EST 2004


Update of /cvs-repository/Products/CMFCore
In directory cvs.zope.org:/tmp/cvs-serv16897/CMFCore

Modified Files:
      Tag: CMF-1_5-branch
	WorkflowTool.py 
Log Message:
- fixed handling of empty string chains


=== Products/CMFCore/WorkflowTool.py 1.46 => 1.46.2.1 ===
--- Products/CMFCore/WorkflowTool.py:1.46	Thu Aug 12 11:07:39 2004
+++ Products/CMFCore/WorkflowTool.py	Tue Nov 16 14:11:04 2004
@@ -472,8 +472,8 @@
         if cbt is None:
             self._chains_by_type = cbt = PersistentMapping()
 
-        if type(chain) is type(''):
-            chain = map( lambda x: x.strip(), chain.split(',') )
+        if isinstance(chain, basestring):
+            chain = [ wf.strip() for wf in chain.split(',') if wf.strip() ]
 
         ti = self._listTypeInfo()
         for t in ti:



More information about the CMF-checkins mailing list