469,920 Members | 2,367 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,920 developers. It's quick & easy.

creating an python function with DCoracle2 module

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
2 1767
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
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.

Similar topics

1 post views Thread by the_rev_dharma_roadkill | last post: by
reply views Thread by Aaron Straup Cope | last post: by
6 posts views Thread by Dan Ellis | last post: by
10 posts views Thread by Java and Swing | last post: by
reply views Thread by Marcel Hartmann | last post: by
1 post views Thread by Vyacheslav Sotnikov | last post: by
reply views Thread by bbansi_1982 | last post: by
reply views Thread by Waqarahmed | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.