[Zope] Catalog Awareness

Geoff Armstrong geofstro@monaco.mc
Mon, 25 Mar 2002 22:21:07 +0100


Well, I forgot the obvious. Of course I needed to do "import from 
Products.ZCatalog.CatalogAwareness import CatalogAware".

Now the product no longer complains that it's broken when I subclass 
"CatalogAware" in each of it's classes that I want to be catalog 
aware. So far so good; but I'm still not getting automatic cataloging 
of these classes objects.

Can anyone advise, what's the next obvious thing I'm missing?

Also, out of a hierarchy of 3 classes, it's the last of these that I 
really want to get into my catalog (automatically); but it is a non 
persistent/transient class. I want to be able to auto catalog each 
instance of this class in my catalog and keep it there after the 
instance goes away. Is this possible?

If not, how can I get to it's properties via it's (catalog aware) 
parents class and (automatically) index those?

I somehow feel this should be possible; but still can't quite see how 
to achieve it.

Can anyone enlighten me further?

geoff