[Zope] A Method To My Madness?

Oleg Broytmann Oleg Broytmann <phd@phd.pp.ru>
Sat, 8 Sep 2001 23:18:52 +0400


On Sat, Sep 08, 2001 at 12:11:22PM -0700, Zopista wrote:
> > except that PARENTS[-1] is the site root.. You're counting the wrong
> > way.. PARENTS[1] (or is it PARENTS[0]?) would give you the container

   I often forget which side is which :)

> Or of course <dtml-in "aq_parent.objectValues('DTML Document)"> and then you
> dont need to worry about it being 0 or -1...

   Wow! Excellent solution.

Oleg.
---- 
     Oleg Broytmann     http://www.zope.org/Members/phd/     phd@phd.pp.ru
           Programmers don't die, they just GOSUB without RETURN.