[Zope] What contains an object....

Chris Withers chrisw@nipltd.com
Thu, 12 Oct 2000 10:05:05 +0100


Ron Bickers wrote:

> > > <dtml-var "PARENTS[-1].myObject == myObject">
> 
> So, is there another way in DTML I can see if an object was acquired from
> PARENTS[-1] or not?  Is there a way to check an objects container out of
> context?

Hmmm... try the following as a replacement for the above stuff:

<dtml-var "myObject in PARENTS[-1].objectValues()">

cheers,

Chris