[Zope] access to parent
sean.upton@uniontrib.com
sean.upton@uniontrib.com
Thu, 25 Oct 2001 09:09:18 -0700
For some reason in TTW python scripts, context.PARENTS[1] seems to do the
same as this...
Sean
-----Original Message-----
From: Michel Vayssade [mailto:michel.vayssade@utc.fr]
Sent: Thursday, October 25, 2001 5:11 AM
To: zope@zope.org
Subject: [Zope] access to parent
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
_______________________________________________
Zope maillist - Zope@zope.org
http://lists.zope.org/mailman/listinfo/zope
** No cross posts or HTML encoding! **
(Related lists -
http://lists.zope.org/mailman/listinfo/zope-announce
http://lists.zope.org/mailman/listinfo/zope-dev )