-----BEGIN PGP SIGNED MESSAGE-----
Gregoire Weber wrote:
> yuppie schrieb:
>> It does feel wrong that you have to register OpaqueItem attributes to
>> make them work correctly. I'd rather like to see a solution similar to
>> that for Zope 3 annotations: Storing all opaque items in one attribute.
> I agree with that in general with that. It would be more elegant!
> Does someone know how to achieve that the catalog catalogs attributes in
> a attribute (aka annotation)? I can imagine how to pass control from
> an annotation object to the sub objects at index time but I don't have
> any idea how to say the catalog that it has to catalog the value of
> cmfuid under ``cmfuid`` and the value of bar under ``bar``.
> foo (content object)
> + __annotations__
> + cmfuid
> + bar
> Any pointers?
CMFCore.CatalogTool already wraps the object in a special object,
IndexableObjectWrapper, which extracts the workflow variables and the
"allowedRolesAndUsers" thingy; I imagine that we could extend that
mechanism to iterate over the (other) annotations, assuming that there
was some uniform interface for extracting catalogable items from each one.
Tres Seaver [EMAIL PROTECTED]
Zope Corporation "Zope Dealers" http://www.zope.com
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.5 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org
-----END PGP SIGNATURE-----
Zope-CMF maillist - Zope-CMF@lists.zope.org
See http://collector.zope.org/CMF for bug reports and feature requests