[Zope-dev] ZCatalog with ZClass
Michael Bernstein
webmaven@lvcm.com
Tue, 16 Jan 2001 21:10:49 -0800
Lily Li wrote:
>
> Hello, everyone,
>
> It seems that many of you have used ZCatalog pretty well.
>
> My problem is that I'd like a ZClass (of a Product) to subclass
> CatalogAware, and implement all the index and search inside the Product.
> That means I don't want to do any DTML method stuff outside of the Product.
What you probably want is to create a repository that
subclasses ZCatalog as is described in this HowTo:
http://www.zope.org/Members/tseaver/inherit_ZCatalog
And then add your CatalogAware ZClasses into it. Then you
can set up your ZCatalog/ObjectManager with search methods.
HTH,
Michael Bernstein.