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. Could anyone tell me how to do it? I can't find anything like API document. I don't have to read through the "Catalog.py" stuff, do I? Thanks in advance. Cheers... Lily
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.
participants (2)
-
Lily Li -
Michael Bernstein