[CMF-checkins] CVS: CMF/CMFCore/interfaces - portal_types.py:1.12

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


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

Modified Files:
	portal_types.py 
Log Message:
Made TypesTool and WorkflowTool rely exclusively on _getPortalTypeName()
to determine the portal type of an object. If the method doesn't exist
or returns None, then we're not looking at a portal object.

Now meta_type is not used as a fallback anymore. Portal objects should
be properly initialized if they want to participate in the portal types
or workflows.

Also ensured that the CMF root is not workflowable by setting its
portal_type to None.



=== CMF/CMFCore/interfaces/portal_types.py 1.11 => 1.12 ===
             ContentTypeInformation interface, corresponding to
             the specified 'contentType'.  If contentType is actually
             an object, rather than a string, attempt to look up
-            the appropriate type info using its portal_type or meta_type.
+            the appropriate type info using its portal_type.
         """
 
     # listTypeInfo__roles__ = None  # Public