Re: [Zope] Access to parents from Python

2000-06-02 Thread Pete Kazmier
I've solved my problem. After toying around a bit this is what I came up with: def ZopeRefreshRoot(self): p = self while p.getParentNode().getNodeName() == 'GWPoolClass': p = p.getParentNode() Where p is now the topmost object of type 'GWPoolClass'. On Fri, Jun 02, 2000 at

[Zope] Access to parents from Python

2000-06-02 Thread Pete Kazmier
Got a quick question ... couldn't seem to find an answer in the archives. I have a container object based on a ZClass, lets call it a 'pool', that holds other objects and more of these 'pools'. How do I, in python, traverse up the tree to find the topmost 'pool'? I need to execute a method on