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

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


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

Modified Files:
	WorkflowTool.py 
Log Message:
- fixed handling of empty string chains


=== Products/CMFCore/WorkflowTool.py 1.47 => 1.48 ===
--- Products/CMFCore/WorkflowTool.py:1.47	Tue Aug 24 17:12:58 2004
+++ Products/CMFCore/WorkflowTool.py	Tue Nov 16 14:11:44 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