From fe974fed5f56aed6f3267cbc43e4ba4028dd2409 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Tue, 16 Dec 2014 22:11:48 +0100 Subject: [PATCH] Remove language from set_trytond This parameter is no more used. issue4403 review11701002 --- proteus/config.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/proteus/config.py b/proteus/config.py index 94a0b04ed9..fbe5299d01 100644 --- a/proteus/config.py +++ b/proteus/config.py @@ -191,7 +191,7 @@ class TrytondProxy(object): class TrytondConfig(Config): 'Configuration for trytond' - def __init__(self, database=None, user='admin', language='en_US', + def __init__(self, database=None, user='admin', config_file=os.environ.get('TRYTOND_CONFIG')): super(TrytondConfig, self).__init__() if not database: @@ -261,11 +261,10 @@ class TrytondConfig(Config): return methods -def set_trytond(database=None, user='admin', language='en_US', +def set_trytond(database=None, user='admin', config_file=None): 'Set trytond package as backend' - _CONFIG.current = TrytondConfig(database, user, language=language, - config_file=config_file) + _CONFIG.current = TrytondConfig(database, user, config_file=config_file) return _CONFIG.current