14 Jun
2001
14 Jun
'01
4:48 p.m.
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