[Zope] Catalog Awareness
Thomas Guettler
zopestoller@thomas-guettler.de
Mon, 25 Mar 2002 16:56:18 +0100
Geoff Armstrong wrote:
> Hi,
>
> I have a need to modify a Zope product so that at least one of it's
> classes becomes catalog aware.
It is not difficult. The ZClass documentation is valid for a python
product, too:
You need to:
1. Subclass from CatalogAware: "class myClass(..., CatalogAware)"
2. insert default_catalog="yourCatalog" to your Class you want to index.
3. call self.index_object() every time you change your data
I hope I have not forgotten a step
thomas