[Zope] access to parent

Michel Vayssade michel.vayssade@utc.fr
Thu, 25 Oct 2001 14:10:46 +0200 (MET DST)


Hi,
in DTML you access to the parent object with PARENTS[0]
for example <dtml-var PARENTS[0].id>

What is the equivalent inside python code ?

I guess the answer will be different if this python code is activated
via the web interface OR if activated through the creation of new
instance from another python code.

--
  _/   _/ _/_/_/  _/_/ Michel.Vayssade@UTC.fr    Service Informatique
 _/   _/   _/  _/      T:33/0-3.44.23.49.24 Universite de Technologie
_/   _/   _/  _/       F:33/0-3.44.23.46.77 BP 20.529 60205 Compiegne
 _/_/    _/    _/_/    _ mv@utc.fr __/www.utc.fr/~vayssade____ France