Re: [Zope] Products, ZClasses and CatalogAware-ness

2000-11-09 Thread Andy McKay

> 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" ?

Yes you are.


___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope-dev )




Re: [Zope] Products, ZClasses and CatalogAware-ness

2000-11-09 Thread Aaron Straup Cope

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


___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope-dev )




Re: [Zope] Products, ZClasses and CatalogAware-ness

2000-11-09 Thread Andy McKay

[..]

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


___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope-dev )




[Zope] Products, ZClasses and CatalogAware-ness

2000-11-09 Thread Aaron Straup Cope

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? If the latter, can I force [it] to do the former?

Thanks,

+ Product 
  + ZClass 
  + ZClass 
  + ZCatalog 
- search/index_html 
- results
  + ...


___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope-dev )