Re: python scripts

Mikel Larreategi <[email protected]> Mon, 04 Jun 2007 08:38:18 +0200
Newsgroups gmane.comp.python.zope.coreblog.english
Message-ID <[email protected]>
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
[email protected]

CodeSyntax
Azitaingo Industrialdea 3 K
E-20600 Eibar
Tel: (+34) 943 82 17 80
_______________________________________________
COREblog-en mailing list
COREblog-en-/9qXvnWia/9Wk0Htik3J/[email protected]
http://postaria.com/mailman/listinfo/coreblog-en
Unsubscription writing to coreblog-en-leave-/9qXvnWia/9Wk0Htik3J/[email protected]