[Zope-CMF] Re: urllib in /skin/, Unauthorized: You are not allowed to access 'quote' in this context

suresh suresh_vv at yahoo.com
Fri Feb 24 08:30:32 EST 2006


Hans Schou wrote:
> Hi
> 
> First question: Is this the proper list to ask for this kind of questions?
> 
> THE question:
> 
> I have a script in Products/PloneMallPayment/skins/PloneMallPayment_public/
> and I want to:
> 
>    import urllib
>    foo = urllib.quote("hello world")
> 
> "Unauthorized: You are not allowed to access 'quote' in this context"
> 
> I already use an "import re" and "re.split" and it works fine, So why 
> can I not use urllib?
> 

you have to:

allow_module('urllib')

See the documents in the PythonScripts Products folder.

--
Suersh



More information about the Zope-CMF mailing list