By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
443,907 Members | 1,832 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 443,907 IT Pros & Developers. It's quick & easy.

creating an python function with DCoracle2 module

P: n/a
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
Jul 18 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a
sh******@free.fr (pepericou) wrote in message news:<46**************************@posting.google. com>...
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


Sounds like the problem is on your machine, and not with DCOracle2.
I've imported it quite nicely (on Windows 2000), and so have many
others. I would check the permissions on your DCOracle files.

Also, is that an English or French version of Windows XP? Many of our
customers use non-English versions of XP, and those versions are often
not as robust as the English version.

Bob Lancaster

rlancasterATbruker-axsDOTcom
Jul 18 '05 #2

P: n/a
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
Jul 18 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.