[Zope] URL quote in python script

David Siedband david at generation-xml.com
Mon Dec 20 05:31:18 EST 2004


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



More information about the Zope mailing list