[FIX] service: wrong namespace for using tools

bzr revid: dle@openerp.com-20140220132548-fkw19c45mbnejgld
This commit is contained in:
Denis Ledoux 2014-02-20 14:25:48 +01:00
parent 8edb7c556b
commit 1b3925fadf
1 changed files with 1 additions and 1 deletions

View File

@ -333,7 +333,7 @@ def exp_list(document=False):
cr.execute("select datname from pg_database where datdba=(select usesysid from pg_user where usename=%s) and datname not in %s order by datname", (db_user, templates_list))
else:
cr.execute("select datname from pg_database where datname not in %s order by datname", (templates_list,))
res = [tools.ustr(name) for (name,) in cr.fetchall()]
res = [openerp.tools.ustr(name) for (name,) in cr.fetchall()]
except Exception:
res = []
finally: