[Zope-DB] Initializing DCOracle2 and connecting to outside script

Barry Sperling barry at angleinc.com
Tue Oct 19 10:13:55 EDT 2004


Hi All,
	I'm new to both Python and Zope, but I couldn't find a search mechanism 
when I entered this list so I'll ask 2 questions that probably have been 
answered:
	1) Trying to connect with DCOracle2, the install.py says it needs an 
older version of Python than the one in Zope or the one I've downloaded 
and started learning with (2.3.4).  Do I need to get an old Python to 
install DCOracle2 so that Zope will be connected to my Oracle 8i 
database on my Win2K machine?
	2) I've tried to connect to a non-Zope script in Python that was used 
to connect to Oracle using cx_Oracle.  Cx_Oracle works from PythonWin, 
but when I use the ZopeBook method of connecting from a page template it 
doesn't know what to do.  Their example of "python: 
here.CalculateCompoundingInterest" works, but then when I put in the 
path to a non-Zope python script it gives me a "key value" error on the 
word "item" when I put it in front of the address, or a "compilation 
failed" error on the "d" in the drive specification without the phrase 
"item/" before it:

<span tal:content="d:\python23\Scripts\test_prime.py"> </span>

	I wouldn't need the solution in 2) right now if I could connect as in 
question 1).  Any help would be appreciated!
	Barry



More information about the Zope-DB mailing list