[Zope] Products, ZClasses and CatalogAware-ness

Aaron Straup Cope asc@vineyard.net
Thu, 9 Nov 2000 17:37:29 -0500 (EST)


Thanks. If I a ZClass that is CatalogAware and contains n number of nested
ZClasses, am I correct to assume that the children (and their
children) inherit the original "awareness" ?

On Thu, 9 Nov 2000, Andy McKay wrote:

> [..]
> 
> > 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.
> 
>