[COREblog-en] python scripts
Victor Sterpu
victor at ambra.ro
Mon Jun 4 10:54:52 CEST 2007
Thank you.
I made it with the external method.
Mikel Larreategi wrote:
> Victor Sterpu(e)k dio:
>
>> I hope I am posting on the right mailing list.
>> I need to use a pyton script, but I receive the following error*.
>>
>> *Error Type: Unauthorized
>> Error Value: The container has no security assertions. Access to
>> 'socket' of (module 'socket' from
>> '/opt/Plone-2.5.3/Python-2.4.4/lib/python2.4/socket.pyc') denied.
>>
>>
>
> You can't import socket module from python scripts... you should write
> an external method. Python scripts are executed in a so called
> "restricted python", where you can only import a small set of standard
> library modules.
>
>
> Mikel
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://postaria.com/pipermail/coreblog-en/attachments/20070604/cb5a3b0b/attachment.htm
More information about the COREblog-en
mailing list