[COREblog-en] python scripts
Mikel Larreategi
mlarreategi at codesyntax.com
Mon Jun 4 08:38:18 CEST 2007
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
--
Mikel Larreategi
mlarreategi at codesyntax.com
CodeSyntax
Azitaingo Industrialdea 3 K
E-20600 Eibar
Tel: (+34) 943 82 17 80
More information about the COREblog-en
mailing list