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

_______________________________________________
Zope-CMF maillist  -  Zope-CMF@lists.zope.org
http://mail.zope.org/mailman/listinfo/zope-cmf

See http://collector.zope.org/CMF for bug reports and feature requests

Reply via email to