[REM] Removed --auto-reload switch and bound feature to --dev switch
authorFabien Meghazi <fme@openerp.com>
Wed, 6 Aug 2014 13:33:04 +0000 (15:33 +0200)
committerFabien Meghazi <fme@openerp.com>
Wed, 6 Aug 2014 13:33:04 +0000 (15:33 +0200)
openerp/service/server.py
openerp/tools/config.py

index eb3f1b7..9989488 100644 (file)
@@ -125,7 +125,7 @@ class FSWatcher(object):
                 if path.endswith('.xml'):
                     _logger.info('autoreload: xml change detected, voiding orm cache')
                     # TODO: void orm caches
-                elif config['auto_reload'] and path.endswith('.py'):
+                elif config['dev_mode'] and path.endswith('.py'):
                     try:
                         source = open(path, 'rb').read() + '\n'
                         compile(source, path, 'exec')
index 1108095..6aeadda 100644 (file)
@@ -255,8 +255,6 @@ class configmanager(object):
 
         # Advanced options
         group = optparse.OptionGroup(parser, "Advanced options")
-        if os.name == 'posix':
-            group.add_option('--auto-reload', dest='auto_reload', action='store_true', my_default=False, help='enable auto reload')
         group.add_option('--dev', dest='dev_mode', action='store_true', my_default=False, help='enable developper mode')
         group.add_option('--debug', dest='debug_mode', action='store_true', my_default=False, help='enable debug mode')
         group.add_option("--stop-after-init", action="store_true", dest="stop_after_init", my_default=False,
@@ -417,7 +415,7 @@ class configmanager(object):
         ]
 
         posix_keys = [
-            'auto_reload', 'workers',
+            'workers',
             'limit_memory_hard', 'limit_memory_soft',
             'limit_time_cpu', 'limit_time_real', 'limit_request',
         ]