[Zope-CMF] Re: CMF 1.5.1 release schedule
Tres Seaver
tseaver at zope.com
Thu Apr 14 10:01:30 EDT 2005
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
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.
- --
===============================================================
Tres Seaver tseaver at zope.com
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
iD8DBQFCXne6GqWXf00rNCgRAhc9AJ9u/rquUubLIptEHIJL+O6hmZpnbwCgjiez
bfyvsQDhQFUdvZMTPSEWMTM=
=YX2A
-----END PGP SIGNATURE-----
More information about the Zope-CMF
mailing list