From a643dc13b2b8b8f4a4c8708f524d1a6dc56b4794 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Wed, 30 Jul 2008 15:48:17 +0200 Subject: [PATCH] Don't set init, update if there is no database name for issue223 --- trytond/config.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/trytond/config.py b/trytond/config.py index 989754cf61..5d2b8f797f 100644 --- a/trytond/config.py +++ b/trytond/config.py @@ -93,13 +93,13 @@ class ConfigManager(object): self.options[arg] = getattr(opt, arg) init = {} - if opt.init: + if opt.init and self.options.get('db_name'): for i in opt.init.split(','): init[i] = 1 self.options['init'] = init update = {} - if opt.update: + if opt.update and self.options.get('db_name'): for i in opt.update.split(','): update[i] = 1 self.options['update'] = update