[Zope] Telnet - psycopg - odbc - dbi with python in Zope

Reddy, Niranjan Kumar (STSD) niranjan-kumar.reddy at hp.com
Wed Mar 30 04:36:18 EST 2005


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


More information about the Zope mailing list