From: Oleg B. <ph...@ph...> - 2004-11-24 11:56:18
|
On Wed, Nov 24, 2004 at 02:37:46PM +0300, Oleg Broytmann wrote: > a module from Dennis Otkidach - here > http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/278612 Dennis' module does not use any style at all - instead, it just construct templates from a list of strings and parameters. > def _executeRetry(self, conn, cursor, query): > return cursor.execute(query.template, query.paramlist) Of course I meant return cursor.execute(self.convert_to_dbapi_style(query.template), query.paramlist) Oleg. -- Oleg Broytmann http://phd.pp.ru/ ph...@ph... Programmers don't die, they just GOSUB without RETURN. |