[Zope-CMF] Help on catalog query

Florent Guillaume fg@nuxeo.com
Mon, 18 Mar 2002 16:30:49 +0000 (UTC)


> > Ah, this reminds me: another weird thing IMHO in CMF, is that Type is
> > catalogged but Type is the human-readable version (the title). It
> > would be much better if Metatype (content_meta_type) was
> > catalogged. Also the allowed_content_types variable in a
> > TypeInformation contains this human-readable version, which means that
> > whenever you change the title you have to go through all your types
> > and reselect the new one in the "Allowed content types".
> 
> We can't use the metatype:  that may not be unique across different
> type information objects based on the same underlying Python class.
> The DublinCore.Type query should return the ID of the type information
> object, which is what we want to be querying on, I think.

Actually what I meant by Metatype was what the Types Tool calls
"Metatype", which is in fact portal_type.

My (badly made :-) point was that we shouldn't use a human readable
string to store internal properties like that.


Florent
-- 
Florent Guillaume, Nuxeo (Paris, France)
+33 1 40 33 79 10  http://nuxeo.com  mailto:fg@nuxeo.com