25 Apr
2001
25 Apr
'01
1:13 a.m.
From: "Tim Moore" <tmoore@tembel.org>
I know that dtml-var has the url_quote_plus attribute, but is there a way to do the same thing from a python script? Or, for that matter, any of the other text-munging functions that dtml-var supports?
You can import them from Products.PythonScripts.standard, as in: from Products.PythonScripts.standard import url_quote_plus return url_quote_plus(txt) There are one or two other useful bits in this module. Cheers, Evan @ digicool