db filter typo

bzr revid: al@openerp.com-20110713120411-tm9j4x9tmgw08mdy
This commit is contained in:
Antony Lesuisse 2011-07-13 14:04:11 +02:00
parent 16d5b55a7a
commit a2e890635b
1 changed files with 1 additions and 1 deletions

View File

@ -62,7 +62,7 @@ class Database(openerpweb.Controller):
proxy = req.session.proxy("db")
dbs = proxy.list()
h = req.httprequest.headers['Host'].split(':')[0]
d = h.split(':')[0]
d = h.split('.')[0]
r = cherrypy.config['openerp.dbfilter'].replace('%h',h).replace('%d',d)
print "h,d",h,d,r
dbs = [i for i in dbs if re.match(r,i)]