Use new update_etc for issue1911

This commit is contained in:
Nicolas Évrard committed 2011-05-05 10:54:54 +02:00
1 parent 49dc8dd691
commit a8e7a052ae
1 file changed
+2 -2
+2 -2
View File
@@ -101,10 +101,10 @@ class TrytondConfig(Config):
'Configuration for trytond'
def __init__(self, database_name=None, user='admin', database_type=None,
language='en_US', password=''):
language='en_US', password='', config_file=None):
super(TrytondConfig, self).__init__()
from trytond.config import CONFIG
CONFIG.parse()
CONFIG.update_etc(config_file)
if database_type is not None:
CONFIG['db_type'] = database_type
from trytond.modules import register_classes