23 Mar
2001
23 Mar
'01
3:25 p.m.
Casey, thanks. That means it must always be "Catalog" if I want to use CatalogAware? Therefore every time I search a new document which inherit CatalogAware as the base class, I will find this new item from searching? pattreeya.
CatalogAware looks for a ZCatalog named "Catalog" (with a capital "C"). Make sure the id of your ZCatalog is set to "Catalog" and it is acquirable by the CatalogAware objects. Therefore it needs to be at or above the CatalogAware objects in your Zope hierarchy.
A caveat about CatalogAware, it only catalogs objects when the are created, deleted or moved. When you change their properties they are not automatically recataloged. To recatalog a CatalogAware object, call its reindex_object() method.