[FIX] delete the connection pool to template1 when finished

[IMP] sql_db.db_connect does not take the 'serialize' parameter anymore

lp bug: https://launchpad.net/bugs/314973 fixed

bzr revid: christophe@tinyerp.com-20090112094020-6l1hdgp5oflengl6
This commit is contained in:
Christophe Simonis
2009-01-12 10:40:20 +01:00
parent e6c2039ec4
commit 9aa2c5fb5c
2 changed files with 37 additions and 26 deletions
+2 -1
View File
@@ -221,9 +221,10 @@ class PoolManager(object):
logger = netsvc.Logger()
logger.notifyChannel('dbpool', netsvc.LOG_INFO, 'Closing all connections to %s' % (db_name,))
cls._pools[db_name].closeall()
print "closeall done"
del cls._pools[db_name]
def db_connect(db_name, serialize=0):
def db_connect(db_name):
return PoolManager.get(db_name)
def close_db(db_name):