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

Florent Guillaume fg@nuxeo.com
Fri, 5 Jul 2002 15:45:35 -0400


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

Modified Files:
	portal_types.py 
Log Message:
Fixed the Types Tool so that TypeInformation's Title is decorrelated
from its Id (the old TypeInformation.Type() should not be used anymore).

The Id is what gets put in the "portal_type" attribute of a content
object, which one gets at using somecontent.getPortalTypeName(). The
Title is returned by somecontent.Type().

"portal_type" is now indexed, and in most cases should be used when
doing catalog queries instead of "Type". Note that when upgrading from
older versions this index will have to be added by hand (see
INSTALL.txt).

Fixed PortalFolder's filtering so that it correctly restricts itself to
the portal types allowed by the TypesTool (Tracker #483).



=== CMF/CMFCore/interfaces/portal_types.py 1.9 => 1.10 ===
         """
     
-    def Type():
+    def Title():
         """
             Return the "human readable" type name (note that it
             may not map exactly to the 'meta_type', e.g., for
@@ -88,7 +88,7 @@
             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 Type or meta_type.
+            the appropriate type info using its portal_type or meta_type.
         """
 
     # listTypeInfo__roles__ = None  # Public