[MERGE] fix undefined get_db_only in ftp and webdav by sbh

bzr revid: tfr@openerp.com-20110628141309-oag99snygj3vuqwn
This commit is contained in:
tfr@openerp.com 2011-06-28 16:13:09 +02:00
commit 810a2472a4
2 changed files with 2 additions and 2 deletions

View File

@ -68,7 +68,7 @@ class abstracted_fs(object):
db, cr = None, None
try:
try:
db = pooler.get_db_only(db_name)
db = pooler.get_db(db_name)
cr = db.cursor()
cr.execute("SELECT 1 FROM pg_class WHERE relkind = 'r' AND relname = 'ir_module_module'")
if not cr.fetchone():

View File

@ -361,7 +361,7 @@ class openerp_dav_handler(dav_interface):
for db_name in result:
cr = None
try:
db = pooler.get_db_only(db_name)
db = pooler.get_db(db_name)
cr = db.cursor()
cr.execute("SELECT id FROM ir_module_module WHERE name = 'document' AND state='installed' ")
res=cr.fetchone()