Re: Wish list (was Re: Invalid cursor state)

Dan Fairs <[email protected]>
Newsgroups gmane.comp.python.egenix.user
Message-ID <[email protected]>
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?

Thanks
Dan

--
Dan Fairs <[email protected]> | http://www.fezconsulting.com/


_______________________________________________________________________
eGenix.com User Mailing List                     http://www.egenix.com/
https://www.egenix.com/mailman/listinfo/egenix-users
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.