Re: [Webware-discuss] trying to refactor query execution codes using DBPool

2004-10-21 Thread Uzo Uzo
What do you mean by .commit()?  do you mean c.commit()?maluke <[EMAIL PROTECTED]> wrote: it should be .commit()-- малюк [ [EMAIL PROTECTED] // ICQ: 39027534 ]The Opportunity Gap   Between what is and what could be exists a potential gap.This gap is an opportunity gap; With every passing of time, it

[Webware-discuss] trying to refactor query execution codes using DBPool

2004-10-21 Thread Uzo Uzo
I have a file MyDataPool.py   from MiscUtils.DBPool import DBPool from pyPgSQL import PgSQL dbpool = DBPool(PgSQL, 10, 'localhost::foo:user1:')   Then in all my python code and servlets I find myself constantly doing   conn = dbpool.getConnection c = conn.cursor() c.execute(QUERY) c.close conn.comm