[CMF-checkins] CVS: CMF/CMFCore/tests/base - dummy.py:1.3
Florent Guillaume
fg@nuxeo.com
Fri, 5 Jul 2002 15:45:35 -0400
Update of /cvs-repository/CMF/CMFCore/tests/base
In directory cvs.zope.org:/tmp/cvs-serv2727/CMFCore/tests/base
Modified Files:
dummy.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/tests/base/dummy.py 1.2 => 1.3 ===
DummyFTI = FactoryTypeInformation( 'Dummy',
+ title='Dummy Content',
meta_type=DummyContent.meta_type,
product='CMFDefault',
factory='addDocument',