Ok .. this should be really easy but it's driving me nuts. How to I set an attribute on a variable when it's being rendered inside of a function? Here's what I mean: <dtml-var "webClient('http://192.168.0.1/getSqlResults?query=' + querystring)"> I need to have the variable querystring render with url_quote_plus, but for the life of me I can't figure out how to set it. TIA Rick
D. Rick Anderson wrote at 2003-3-6 16:17 -0800:
...
I need to have the variable querystring render with url_quote_plus, but for the life of me I can't figure out how to set it.
Make a Python Script: Parameters: s Body: from Products.PythonScripts.standard import url_quote_plus return url_quote_plus(s) Call your Python Script with whatever string you want to be quoted. Dieter
participants (2)
-
D. Rick Anderson -
Dieter Maurer