← Back to team overview

openerp-india team mailing list archive

[Bug 922024] Re: config parameter --no-database-list error

 

SOLUTION

Replace def db_list  within total

def db_list(req):
    h = req.httprequest.environ['HTTP_HOST'].split(':')[0]
    d = h.split('.')[0]
    if openerp.tools.config['list_db']:
     proxy = req.session.proxy("db")
     dbs = proxy.list()
     r = openerp.tools.config['dbfilter'].replace('%h', h).replace('%d', d)
     dbs = [i for i in dbs if re.match(r, i)]
    else:
     dbs = [ d ]
    return dbs

-- 
You received this bug notification because you are a member of OpenERP
Indian Team, which is subscribed to OpenERP Server.
https://bugs.launchpad.net/bugs/922024

Title:
  config parameter --no-database-list error

Status in OpenERP Web:
  Fix Released
Status in OpenERP Server:
  Fix Committed

Bug description:
  setting this parameter to false raises db access error
  * web works somehow after ignoring the message
  * GTK no access possible

To manage notifications about this bug go to:
https://bugs.launchpad.net/openerp-web/+bug/922024/+subscriptions


References