[Zope] How to get name of calling DTML or script..

Dieter Maurer dieter@handshake.de
Thu, 11 Jul 2002 20:53:00 +0200


Dennis Allison writes:
 > Take a look at the contents of the REQUEST object.  You'll probably find 
 > what you need there :-)
 > 
 > To view the REQUEST Object contents, make a Python Script 
 > 
 > request = container.REQUEST
 > for k in request.keys():
 >    print k, '=', request[k]
 > print
 > return printed
You can have this much easier:

    "<dtml-var REQUEST>" (DTML), "return str(REQUEST)" (Python Script),
    or '<div tal:content="structure request">' (ZPT).


Dieter