Dilley, Hara wrote:
when I was calling the function from a shell it was importing DCOracle2 from the /usr/lib/python calling it from within zope is importing DCOracle2 from $ZOPE_HOME/bin/python It appears that these two copies of DCOracle2 are different. So I solved the problem by copying DCOracle2 from the standalone python into $ZOPE_HOME/lib/python2.1/site-packages. So far it is working. I hope this will not be a problem down the road. I would be very interested to understand why these two copies behave differently??
Thanks for your response Bogdan,
-Hara
The Zope/lib/python/DCOracle2 directory is the Zope adapter; it contains the database adapter as a component. You may feel free to rename the outer directory to ZOracleDA if you wish; the name of the outer directory is not relevant to Zope.