[Zope] Products, ZClasses and CatalogAware-ness

Andy McKay andym@ActiveState.com
Thu, 9 Nov 2000 12:32:43 -0800


[..]

> Hi,
>
> Could someone clarify the following for me:
>
> I would like to create a Product that instantiates itself with a ZCatalog
> and a search interface "built-in". I'd like make all the Product's
> ZClasses update the catalog whenever they are changed.
>
> If I make all the classes catalog-aware and point them to the name of the
> "root" ZCatalog, will they (re)index the root catalog or a catalog local
> to the class itself?

They find the closest item called 'Catalog', which may be the root if there
is no other item "closer".

> If the latter, can I force [it] to do the former?

Fiddle around with what Catalog is the closest.

--
  Andy McKay, Developer.
  ActiveState.