diff --git a/trytond/config.py b/trytond/config.py index f6de6699b1..f7e6073efb 100644 --- a/trytond/config.py +++ b/trytond/config.py @@ -42,8 +42,11 @@ class ConfigManager(object): 'session_timeout': 600, 'psyco': False, 'auto_reload': True, + 'init': {}, + 'update': {}, } + def parse(self): parser = optparse.OptionParser(version=VERSION) parser.add_option("-c", "--config", dest="config", diff --git a/trytond/server.py b/trytond/server.py index 00767bd852..8e5978f046 100644 --- a/trytond/server.py +++ b/trytond/server.py @@ -34,6 +34,7 @@ from trytond.monitor import monitor class TrytonServer(object): def __init__(self): + CONFIG.parse() if CONFIG['logfile']: logf = CONFIG['logfile']