[Zope] Current Folder

Dieter Maurer dieter at handshake.de
Wed Apr 28 19:49:43 EDT 2004


Asad Habib wrote at 2004-4-28 10:38 -0400:
>Hello. Is there a simple way I can get access to the id/title of the
>folder that my DTML document is in?

If this really is a "DTML Document" and you want to access
the container that contains this document (and you are using
Zope 2.7 or above), then you can use "aq_inner.aq_parent".
This should give you the container containing the
"DTML Document". This will not work for a "DTML Method".

-- 
Dieter



More information about the Zope mailing list