From 71da7dd9e461ebf17ea661e779f657d82ef4a4c9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Mon, 23 Mar 2009 11:41:07 +0100 Subject: [PATCH] Disable installation of tests module from command line --- trytond/config.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/trytond/config.py b/trytond/config.py index 064eb3aa9d..e850a20186 100644 --- a/trytond/config.py +++ b/trytond/config.py @@ -104,13 +104,15 @@ class ConfigManager(object): init = {} if opt.init and self.options.get('db_name'): for i in opt.init.split(','): - init[i] = 1 + if i != 'tests': + init[i] = 1 self.options['init'] = init update = {} if opt.update and self.options.get('db_name'): for i in opt.update.split(','): - update[i] = 1 + if i != 'tests': + update[i] = 1 self.options['update'] = update def load(self):