creating an python function with DCoracle2 module

Joe Francia usenet at -OBFUSCATION-joefrancia.com
Tue Apr 27 11:41:57 EDT 2004


pepericou wrote:

> I'm trying to developp an application which use Zope and DCOracle2
> module to access Oracle database. I've install the DCOracle2 product
> on Windows XP, but when I create a python function to access my
> database, I' have the following error when I test it :
>  import DCOracle2 is unauthorized
> Can You help me ?
> Thank you

I'm assuming you're creating a Python Script in Zope via the ZMI.  Zope
forbids the importing of all but a few modules in the ZMI, for security
reasons.  You will need to use an External Method or, even better, find a
Zope Oracle Product that will allow you to create a connection in one of
your folders and allow you to use Z SQL Methods.

BTW:  You should probably post further questions about Zope to either the
Zope-General or Zope-Database list.

-- 
Soraia: http://www.soraia.com



More information about the Python-list mailing list