Re: [Zope] Import Modules
Luiz Fernando B. Ribeiro wrote: Hello, I manage my own servers developing web applications and I would like to remove the import restrictions of python modules in python scripts. Is it possible? How can I allow other modules to be imported? I have been using external modules but it is starting to become nonproductive since I have to create functions to simple problems like md5, re, etc, and just using the needed modules would be much simple. I use Zope as an application server and my clients do not have access to the ZMI, so I'm not concerned with protection against misuse by my clients. Thanks in advance, I recall seeing some documentation about this use case somewhere. I think it was in the folder with the python scripts product. -Jim Washington ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Import Modules
- Original Message - From: Luiz Fernando B. Ribeiro [EMAIL PROTECTED] To: zope@zope.org Sent: Friday, June 23, 2006 8:40 AM Subject: [Zope] Import Modules Hello, I manage my own servers developing web applications and I would like to remove the import restrictions of python modules in python scripts. Is it possible? How can I allow other modules to be imported? I have been using external modules but it is starting to become nonproductive since I have to create functions to simple problems like md5, re, etc, and just using the needed modules would be much simple. I use Zope as an application server and my clients do not have access to the ZMI, so I'm not concerned with protection against misuse by my clients. This may get you pointed in the right direction: http://plone.org/documentation/how-to/using-unauthorized-modules-in-scripts hth Jonathan ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Import Modules
--On 23. Juni 2006 09:40:41 -0300 Luiz Fernando B. Ribeiro [EMAIL PROTECTED] wrote: Hello, I manage my own servers developing web applications and I would like to remove the import restrictions of python modules in python scripts. Is it possible? How can I allow other modules to be imported? I have been using external modules but it is starting to become nonproductive since I have to create functions to simple problems like md5, re, etc, and just using the needed modules would be much simple. Check for allow_module(). However this is *not* a solution for all and everything. There are several that will define not work properly with PythonScript (including 're'). If you need unrestricted access to Python: use external method or write a Zope product. If you're in CMF country: check out TrustedExecutables. All other approaches are just the wrong way... -aj pgpeJqGUmBSBh.pgp Description: PGP signature ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )