diff options
| author | Stephane Wirtel <stephane@tinyerp.com> | 2008-12-24 01:36:56 +0100 |
|---|---|---|
| committer | Stephane Wirtel <stephane@tinyerp.com> | 2008-12-24 01:36:56 +0100 |
| commit | d2197ffadd4fd72c23a7e701ec9dba47dddb6cb7 (patch) | |
| tree | a4848b42158281239e0d2ea0c7b96078a3372f34 /bin/tools/config.py | |
| parent | d9be84059db737e015f0154e38a408e8a4c6e28c (diff) | |
| parent | ca93318a771c1032d072702d4d0cea8fb9603b60 (diff) | |
[MERGE]
bzr revid: stephane@tinyerp.com-20081224003656-kwftdnreax7m7hbg
Diffstat (limited to 'bin/tools/config.py')
| -rw-r--r-- | bin/tools/config.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/bin/tools/config.py b/bin/tools/config.py index 7b8ab1df84b..9d3d552a749 100644 --- a/bin/tools/config.py +++ b/bin/tools/config.py @@ -76,6 +76,7 @@ class configmanager(object): 'syslog' : False, 'log_level': logging.INFO, 'assert_exit_level': logging.WARNING, # level above which a failed assert will be raise + 'cache_timeout': 100000, } hasSSL = check_ssl() @@ -100,6 +101,8 @@ class configmanager(object): parser.add_option("-i", "--init", dest="init", help="init a module (use \"all\" for all modules)") parser.add_option("--without-demo", dest="without_demo", help="load demo data for a module (use \"all\" for all modules)", default=False) parser.add_option("-u", "--update", dest="update", help="update a module (use \"all\" for all modules)") + parser.add_option("--cache-timeout", dest="cache_timeout", help="set the timeout for the cache system", default=100000, type="int") + # stops the server from launching after initialization parser.add_option("--stop-after-init", action="store_true", dest="stop_after_init", default=False, help="stop the server after it initializes") parser.add_option('--debug', dest='debug_mode', action='store_true', default=False, help='enable debug mode') @@ -186,7 +189,7 @@ class configmanager(object): self.options['pidfile'] = False keys = ['interface', 'port', 'db_name', 'db_user', 'db_password', 'db_host', - 'db_port', 'logfile', 'pidfile', 'smtp_port', + 'db_port', 'logfile', 'pidfile', 'smtp_port', 'cache_timeout', 'email_from', 'smtp_server', 'smtp_user', 'smtp_password', 'price_accuracy', 'netinterface', 'netport', 'db_maxconn', 'import_partial', 'addons_path'] |
