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

Florent Guillaume fg@nuxeo.com
Sun, 4 Aug 2002 11:25:14 -0400


Update of /cvs-repository/CMF/CMFCore
In directory cvs.zope.org:/tmp/cvs-serv17111/CMFCore

Modified Files:
	WorkflowTool.py 
Log Message:
Merged change from CMF-1_3-branch, with additionnal test:

Fixed WorkflowTool so that it doesn't pretend to workflow non-CMF
objects (Collector #19).



=== CMF/CMFCore/WorkflowTool.py 1.29 => 1.30 ===
         elif hasattr(aq_base(ob), '_getPortalTypeName'):
             pt = ob._getPortalTypeName()
         else:
-            pt = getattr( ob, 'meta_type', None )  # Use a common Zope idiom.
-
+            pt = getattr(ob, 'portal_type', None)
             if pt is None:
                 return ()