[CMF-checkins] CVS: CMF/CMFCore/dtml - registryPredList.dtml:1.4

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


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

Modified Files:
	registryPredList.dtml 
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/dtml/registryPredList.dtml 1.3 => 1.4 ===
      <dtml-with portal_types>
      <select name="typeObjectName">
-      <dtml-in allowedContentTypes>
+      <dtml-in listTypeInfo>
         <dtml-let item=sequence-item
                   sel="item.getId() == typName and 'selected' or ''"
         >
-         <option value="&dtml-getId;" &dtml-sel;> &dtml-Type; </option>
+         <option value="&dtml-getId;" &dtml-sel;> &dtml-Title; </option>
         </dtml-let>
       </dtml-in>
      </select>