logo       
Google Custom Search
    AddThis Social Bookmark Button
-->

CVS: Products/CMFCore - WorkflowTool.py:1.48: msg#00048

Subject: CVS: Products/CMFCore - WorkflowTool.py:1.48
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:


<Prev in Thread] Current Thread [Next in Thread>