Show More
@@ -46,13 +46,14 b' def includeme(config):' | |||
|
46 | 46 | # repository group events. |
|
47 | 47 | config.add_subscriber(generate_config_subscriber, RepoGroupEvent) |
|
48 | 48 | |
|
49 | # Prepare reload command to pass it to the subprocess module and add a | |
|
50 |
# |
|
|
49 | # If a reload command is set add a subscriber to execute it on | |
|
50 | # configuration changes. | |
|
51 | 51 | reload_cmd = shlex.split(settings[config_keys.reload_command]) |
|
52 | reload_timeout = settings[config_keys.reload_timeout] or None | |
|
53 | config_change_subscriber = AsyncSubprocessSubscriber( | |
|
54 | cmd=reload_cmd, timeout=reload_timeout) | |
|
55 | config.add_subscriber(config_change_subscriber, ModDavSvnConfigChange) | |
|
52 | if reload_cmd: | |
|
53 | reload_timeout = settings[config_keys.reload_timeout] or None | |
|
54 | reload_subscriber = AsyncSubprocessSubscriber( | |
|
55 | cmd=reload_cmd, timeout=reload_timeout) | |
|
56 | config.add_subscriber(reload_subscriber, ModDavSvnConfigChange) | |
|
56 | 57 | |
|
57 | 58 | |
|
58 | 59 | def _sanitize_settings_and_apply_defaults(settings): |
General Comments 0
You need to be logged in to leave comments.
Login now