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
Ronald L. Chichester writes:
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? Seems to call for "ZopeFind"...
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? You could use acquisition (and refer to it by 'contacts'), unless an intermediate folder had a 'contacts' (and you would want to skip it) or the parent did not necessary have a 'contacts'.
Dieter
participants (2)
-
Dieter Maurer -
Ronald L. Chichester