Telnet - psycopg - odbc - dbi with python in Zope
Hi Guys, I'm a newbie to Zope .. & here's my query .. My Application Architecture : Web Interface ( submit data & Report data)<-> Python Scripts ( Uses telnetlib, psycopg, odbc modules) <-> Database ( PostgreSql ) Querying the database directly through Python is an easy job but when I try to invoke the Python scripts through Zope, there are some security restrictions in zope where in we are not allowed to access all the built-in libraries of Python like telnetlib, psycopg, dbi , odbc & so on. I went thru some of the zope mailing lists & got a work around where in one can provide the access to some but not all of the Python built-in modules using the allow_access('<module-name>') method. The access to the modules like telnetlib, psycopg, dbi , odbc is restricted even in this case. Please let me know if you have a work around for this problem. Niranjan
--On Mittwoch, 30. März 2005 15:06 Uhr +0530 "Reddy, Niranjan Kumar (STSD)" <niranjan-kumar.reddy@hp.com> wrote:
Hi Guys,
I'm a newbie to Zope .. & here's my query ..
My Application Architecture : Web Interface ( submit data & Report data)<-> Python Scripts ( Uses telnetlib, psycopg, odbc modules) <-> Database ( PostgreSql )
Querying the database directly through Python is an easy job but when I try to invoke the Python scripts through Zope, there are some security restrictions in zope where in we are not allowed to access all the built-in libraries of Python like telnetlib, psycopg, dbi , odbc & so on.
Please read the RDBMS chapter of the Zope Book carefully and learn about database adapters first before trying things out in a way which is not recommended. -aj
participants (2)
-
Andreas Jung -
Reddy, Niranjan Kumar (STSD)