[Zope-CMF] Help on catalog query
seb bacon
seb@jamkit.com
19 Mar 2002 09:56:01 +0000
On Mon, 2002-03-18 at 16:30, Florent Guillaume wrote:
> > > 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.
Right, it should be the tool's id or a new property, IMO.
seb
>
> Florent
> --
> Florent Guillaume, Nuxeo (Paris, France)
> +33 1 40 33 79 10 http://nuxeo.com mailto:fg@nuxeo.com
>
> _______________________________________________
> Zope-CMF maillist - Zope-CMF@zope.org
> http://lists.zope.org/mailman/listinfo/zope-cmf
>
> See http://www.zope.org/Products/PTK/Tracker for bug reports and feature requests