Ed Leafe wrote: > On Dec 30, 2006, at 5:39 PM, Carl Karsten wrote: > >>> First let me ask: did you look at dCursorMixin.py? >> look at: yes. >> understand what/how everything does what: no. > > Is it that you don't understand the Python code involved, or that > you can't follow the Dabo execution logic?
I'll go with B. for instance, right now I am trying to write some simple db unit test code and I can't figure out how to do this using dabo classes:
import MySQLdb con = MySQLdb.connect(host='vaio', user='daboadmin', passwd='dabo0', db='dabotest3') cur = con.cursor() ret = cur.execute( "insert into logs (host, facility) values (%(host)s, %(facility)s)", {'host': 'foo3', 'facility': 'bar3'} )
After splunking around, I took a shot: db=MySQL() db.getConnection( ... hmm... looks like I need to pass an object that defines the connection parameters. trying to figure out 'that.'
Carl K
©2006 Carl Karsten |