Re: About XXX and not XXX
The equivalent in Python Script is this: from Products.PythonScripts.standard import url_quote, url_quote_plus print url_quote_plus("peter bengtsson") print url_quote("peter bengtsson") return printed The only think I really miss in Python Scripts is the builtin type() and some functions from urllib.py. Why do you think type() and urllib() are unauthorized for Python Scripts?
I fixed it (for me) by adding an XXXPythonscript which
Param :x
Import urllib Return urllib.quote(x)
Now I get my full name in the input form...
Cheers
tom
From: "Peter Bengtsson" <mail@peterbe.com>
Why do you think type() and urllib() are unauthorized for Python Scripts?
Because they weren't in DTML ;-) Seriously, I think the lack of urllib access was an oversight. The 'type' function, on the other hand, causes a security hole when used with ExtensionClasses. Fortunately, you can almost always use the same_type() function instead. Cheers, Evan @ digicool & 4-am
Cheers Evan. http://www.zopelabs.com/cookbook/995873707 I wonder what else might be hidden usefully in Python Scripts that I have missed.
Because they weren't in DTML ;-) Seriously, I think the lack of urllib access was an oversight. The 'type' function, on the other hand, causes a security hole when used with ExtensionClasses. Fortunately, you can almost always use the same_type() function instead.
Cheers,
Evan @ digicool & 4-am
participants (2)
-
Evan Simpson -
Peter Bengtsson