Wish list (was Re: [egenix-users] Invalid cursor state)

Dan Fairs dan.fairs at gmail.com
Fri Jul 17 10:34:42 CEST 2009

Hi Charlie,

> to come back to this. You want something a bit like this:
> class DatabaseConnection(Persistent):
> 	implements(IDatabaseConnection)
> registered locally and called as a named utility
> db = getUtility(IDatabaseConnection, u"the specific connection")()
> db.execute("INSERT (gromit, doodah, wotsit) INTO thingy (?, ?, ?)",  
> (*args))

Ah - that's great. I was wondering whether something like that would  
work. Presumably the DatabaseConnection would actually be the  
mxODBCZopeDA object itself?


Dan Fairs <dan.fairs at gmail.com> | http://www.fezconsulting.com/

More information about the egenix-users mailing list