Christian Thieme wrote:
hi,
I extended some plone types with schemaextender,
adding a boolean and a stringfield which i want to have as catalog metadata.
When I use AnnotationStorage for these fields, they do not show up in
the catalog, with default storage they do.
Does someone have an explanation for this?
There is no generated accessor or mutator for these fields, so the
catalog doesn't know what to index. AttributeStorage may work because it
actually scribbles an attribute onto the object, although this is
somewhat messy.
Instead, I'd register a catalog indexer with the
ExtensibleIndexableObjectWrapper - see CatalogTool.py in Plone.
Martin
--
Author of `Professional Plone Development`, a book for developers who
want to work with Plone. See http://martinaspeli.net/plone-book
_______________________________________________
Product-Developers mailing list
[email protected]
http://lists.plone.org/mailman/listinfo/product-developers