[Zope-CMF] Re: portal_catalog error in CMF 1.3b2 ?
Florent Guillaume
fg@nuxeo.com
Sat, 13 Jul 2002 14:54:16 +0000 (UTC)
Chris Withers <chrisw@nipltd.com> wrote:
> Tres Seaver wrote:
> > Ah, ok; you need to add the 'portal_type' FieldIndex to your catalog,
> > and reindex it; the search form in beta2 uses it, rather than the
> > deprecated "Type" index (Type is now supposed to be the "human-readable"
> > / "localized" title, rather than the ID, of the type object).
>
> Are these differences between portal_type and Type documented anywhere?
Yes, in http://cmf.zope.org/download/CMF-1.3beta2/CHANGES.txt :
Fixed the TypesTool 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".
Florent
--
Florent Guillaume, Nuxeo (Paris, France)
+33 1 40 33 79 87 http://nuxeo.com mailto:fg@nuxeo.com