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