[CMF-checkins] CVS: CMF - portal_types.py:1.4.2.1

tseaver@digicool.com tseaver@digicool.com
Tue, 5 Jun 2001 17:56:05 -0400 (EDT)


Update of /cvs-repository/CMF/CMFCore/interfaces
In directory korak.digicool.com:/tmp/cvs-serv9653/CMFCore/interfaces

Modified Files:
      Tag: alltypes_branch
	portal_types.py 
Log Message:


 - Make it possible to map "normal" Zope objects as content
   (Tracker #283):

   o Skin and tool code which currently queries the object
     for its Type in order to then ask the types tool for
     a TypeInfo object should instead just ask the types tool
     for type TypeInfo object directly.
   
   o Modify the TypesTool interface to signal that passing an
     object to 'getTypeInfo' is acceptable, with the semantic
     that the tool will attempt to find a TypeInfo object based
     on the tool's type or metatype.
 



--- Updated File portal_types.py in package CMF --
--- portal_types.py	2001/06/05 21:43:32	1.4
+++ portal_types.py	2001/06/05 21:56:04	1.4.2.1
@@ -164,7 +164,9 @@
         """
             Return an instance which implements the
             ContentTypeInformation interface, corresponding to
-            the specified 'contentType'.
+            the specified 'contentType'.  If contentType is actually
+            an object, rather than a string, attempt to look up
+            the appropriate type info using its Type or meta_type.
         """
 
     # listTypeInfo__roles__ = None  # Public