Re: python scripts
Victor Sterpu <[email protected]> Mon, 04 Jun 2007 11:54:52 +0300
| Newsgroups | gmane.comp.python.zope.coreblog.english |
|---|---|
| Message-ID | <[email protected]> |
This is a multi-part message in MIME format. --===============1450842749== Content-Type: multipart/alternative; boundary="------------040801010400020003090802" This is a multi-part message in MIME format. --------------040801010400020003090802 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit 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 > > --------------040801010400020003090802 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type"> </head> <body bgcolor="#ffffff" text="#000000"> Thank you.<br> I made it with the external method.<br> <br> <br> Mikel Larreategi wrote: <blockquote cite="[email protected]" type="cite"> <pre wrap="">Victor Sterpu(e)k dio: </pre> <blockquote type="cite"> <pre wrap="">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. </pre> </blockquote> <pre wrap=""><!----> 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 </pre> </blockquote> <br> </body> </html> --------------040801010400020003090802-- --===============1450842749== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ 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] --===============1450842749==--