Permalink
Browse files

[FIX] ignore dbfilter, fixes OCA#58

dbfilter can contains %d or %h, referring to the client hostname.
Since connector does run independently of client, it can not rely
on the dbfilter concept.
  • Loading branch information...
sbidoul committed Dec 27, 2015
1 parent ef33ae1 commit 14b2dc81e90a70f38d3946ba486f2f9eb9131f36
Showing with 0 additions and 6 deletions.
  1. +0 −3 connector/jobrunner/runner.py
  2. +0 −3 connector/queue/worker.py
@@ -265,9 +265,6 @@ def get_db_names(self):
db_names = openerp.tools.config['db_name'].split(',')
else:
db_names = openerp.service.db.exp_list()
dbfilter = openerp.tools.config['dbfilter']
if dbfilter:
db_names = [d for d in db_names if re.match(dbfilter, d)]
return db_names
def close_databases(self, remove_jobs=True):
@@ -261,9 +261,6 @@ def available_db_names():
db_names = config['db_name'].split(',')
else:
db_names = db.exp_list(True)
dbfilter = config['dbfilter']
if dbfilter and db_names:
db_names = [d for d in db_names if re.match(dbfilter, d)]
available_db_names = []
for db_name in db_names:
session_hdl = ConnectorSessionHandler(db_name,

0 comments on commit 14b2dc8

Please sign in to comment.