DTML<->Python confusion (RE: [Zope] How to make a script return rendered dtml)
Evan Simpson
evan@digicool.com
Thu, 14 Jun 2001 12:48:59 -0400
Peter Bengtsson wrote:
> Is there a special little trick in Zope that passes REQUEST as a parameter
> to say "this is ZMI"? Is REQUEST specially treated compared to other
> arguments?
That's the magic of "mapply". Basically, the target of a request gets
called by the "mapply" function, which sniffs its call signature and
tries to match parameter names to names in the REQUEST, including
"REQUEST". If you create a Script and give it parameters like REQUEST
and RESPONSE, it will get them when it is the request target.
--
Cheers,
Evan @ digicool