7 Mar
2001
7 Mar
'01
9:54 a.m.
Alex Verstraeten wrote:
This brings me 2 problems: the syntax is much longer, instead of having: <dtml-var MyMethod> I have to type now: <dtml-var "MyMethod(RESPONSE=RESPONSE , REQUEST=REQUEST)">
the other problem is that from now on this object requires to be called from a dtml-method (because it needs these RESPONSE and REQUEST objects as parameters)
is there a cleaner solution than doing this?
Yup, the following two lines at the start of your script: ;-) REQUEST = context.REQUEST RESPONSE = context.REQUEST.RESPONSE It'd be nice if Python Scripts did that for you, I wonder if there's any reason they don't? cheers, Chris