URL quoting from a Python script
24 Apr
2001
24 Apr
'01
10:51 p.m.
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? thanks! -- Tim Moore
25 Apr
25 Apr
1:13 a.m.
New subject: [Zope] URL quoting from a Python script
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
9112
Age (days ago)
9113
Last active (days ago)
1 comments
2 participants
participants (2)
-
Evan Simpson -
Tim Moore