-----Original Message----- From: Art Hampton [mailto:arth@pacsg.css.mot.com] Sent: Wednesday, December 08, 1999 1:23 PM To: zope@zope.org Subject: [Zope] Acquire variable for ZCatalog indexing?
I asked this previously, and got no replies. I'll give it one more shot.
When making a Z Catalog of a certain class of object, is it possible to acquire a variable from parent objects?
Do the objects catalog themselves, or are you using Find? Acquisition is based on the context in which you access objects. If you you find, for example, you will be accessing the objects in the context of the catalog, not in the context of their parents. If objects catalog themselves when created/moved (ie, CatalogAwareness) they index themselves in the context of the request that created them, in the constructor of your ZClass, you can essentially manipulate in what context you want your object to be indexed. It's really kinda complicated actually. -Michel