Remove language from set_trytond

This parameter is no more used.

issue4403
review11701002
This commit is contained in:
Cédric Krier
2014-12-16 22:11:48 +01:00
parent 5ecf5185f7
commit fe974fed5f
+3 -4
View File
@@ -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