[CMF-checkins] CVS: CMF/CMFCore - WorkflowTool.py:1.24.4.6
Florent Guillaume
fg@nuxeo.com
Sun, 4 Aug 2002 11:15:29 -0400
Update of /cvs-repository/CMF/CMFCore
In directory cvs.zope.org:/tmp/cvs-serv14282/CMFCore
Modified Files:
Tag: CMF-1_3-branch
WorkflowTool.py
Log Message:
Fixed WorkflowTool so that it doesn't pretend to workflow non-CMF
objects (Collector #19).
=== CMF/CMFCore/WorkflowTool.py 1.24.4.5 => 1.24.4.6 ===
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 ()