[Zope] reference to a DTML Document in a script called by this Document

Elena Schulz elena.schulz@gmx.net
Mon, 9 Dec 2002 13:21:44 +0100


Hi,

context in a script called from a DTML-Method refers to the containing
folder as expected. But context in a script called from a DTML-Document
refers also to the containing folder!? Shouldn'd that be the Document
itself?

Even if I call the script like myscript(this()) in a DTML-Document  I cannot
get the reference to this DTML-Document. So how do I get reference to a
DTML- or ZPT Document in script called from that Document ?

-- many thanks for your replies, Elena