I just built a python script called url_quote (in my 'code' folder) and called it like so from dtml: <dtml-var "webClient('http://192.168.0.1/getSqlResults?query=' + code.url_quote(querystring))"> The script: (with Parameter List having the parameter 'astring') # Import a standard function from Products.PythonScripts.standard import url_quote_plus # Return a string suitable for URL's. return "%s" % url_quote_plus(astring) 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