Re: [Zope] URL quote in python script
by default, you can't use urllib.quote inside Zope, only in external methods. To use it inside Zope you'll need to explicitly allow it with allow_module() Check out the developers guide for info on how to use allow_module() http://zope.org/Documentation/Books/ZDG/current/Security.stx -- David Siedband generation-xml.com On Dec 20, 2004, at 12:47 AM, Eddy Ilg wrote:
David Siedband wrote:
urllib.urlquote There seems to be no such function in urllib. If I try it I get the error "'module' object has no attribute 'urlquote'". I imported the urllib properly. I also tried to use urllib.quote, but this gives me "Access denied". Seems like I may only access that from external scripts.
How do I escape strings in an internal script? There must be a way...
Eddy
participants (1)
-
David Siedband