[Zope] Quick Acquisition Question

Ronald L. Chichester complaw@hal-pc.org
Sun, 19 Aug 2001 14:59:50 -0500


I have a ZClass that acts as a 'parent' folder for a number of similar
ZClasses (similar in that they have all the same properties EXCEPT the
property amParent is TRUE for the parent only (FALSE for the children).

The child folders in question (as well as the parent) can contain
instances of other ZClass objects.  My question is, if I am in a child
folder buried deep down in the branch having a parent as a root note
(NOT the root folder), how can I get a list of the instances of the
other ZClasses in ALL of the other child (and parent) folder?

The next question is, the parent folder has a set of special folders
containing, for instance, a set of contacts (ZClasses).  If I am way
down the tree (by an arbitrary number of intermediate folders), how
would I refer back to the 'contacts' folder in the parent folder?  As
far as the folder in question is concerned, its parent is the child of
another folder.  I don't want to go all the way back up to the root
node, just to the folder object that satisfies a certain condition.

I've read up on acquisition, but it doesn't seem to be answering my
questions.

TIA,

Ron