[Zope] Real Container of a dtml-method

Dieter Maurer dieter@handshake.de
Mon, 14 Jan 2002 19:57:05 +0100


Andreas Leitner writes:
 > How can I find the real container of a given dtml-method.
 > <dtml-var expr="aq_parent"> only gives me the aquired parent, which is
 > not always what i want. I would like to know the folder where the
 > dtml-method I am in is actually stored.
You must use an External Method (or other file system based code
or XXXPythonScript). There, you can use:

   object.aq_inner.aq_parent
   
This gives you the "object"s container.


Dieter