[Zope-dev] Accessing parent object

Robert Sander zope-dev@beteigeuze.cs.tu-berlin.de
Fri, 18 Feb 2000 16:53:47 +0100


On Fri, Feb 18, 2000 at 04:19:22PM +0100, Robert Sander wrote:

> It seems that this does not work, too. The object from class One can acquire 
> its parents, I can _setObject an object two of class Two in it, but when I want 
> to acquire anything from this object two, there is nothing ...

I created a workaround with:

  one._setObject(id, two)
  two.aq_parent = one

But I do not think that this is usual method in ZOPE.

Greetings
-- 
Robert Sander                                 www.gurubert.de