##// END OF EJS Templates
svn: split generate and write parts for easier usage in automation scripts.
marcink -
r3223:95dfd17a default
parent child Browse files
Show More
@@ -35,15 +35,8 b' from .events import ModDavSvnConfigChang'
35 log = logging.getLogger(__name__)
35 log = logging.getLogger(__name__)
36
36
37
37
38 def generate_mod_dav_svn_config(registry):
38 def write_mod_dav_svn_config(settings):
39 """
39 use_ssl = str2bool(settings['force_https'])
40 Generate the configuration file for use with subversion's mod_dav_svn
41 module. The configuration has to contain a <Location> block for each
42 available repository group because the mod_dav_svn module does not support
43 repositories organized in sub folders.
44 """
45 settings = registry.settings
46 use_ssl = str2bool(registry.settings['force_https'])
47
40
48 config = _render_mod_dav_svn_config(
41 config = _render_mod_dav_svn_config(
49 use_ssl=use_ssl,
42 use_ssl=use_ssl,
@@ -54,6 +47,17 b' def generate_mod_dav_svn_config(registry'
54 realm=get_rhodecode_realm(), template=settings[config_keys.template])
47 realm=get_rhodecode_realm(), template=settings[config_keys.template])
55 _write_mod_dav_svn_config(config, settings[config_keys.config_file_path])
48 _write_mod_dav_svn_config(config, settings[config_keys.config_file_path])
56
49
50
51 def generate_mod_dav_svn_config(registry):
52 """
53 Generate the configuration file for use with subversion's mod_dav_svn
54 module. The configuration has to contain a <Location> block for each
55 available repository group because the mod_dav_svn module does not support
56 repositories organized in sub folders.
57 """
58 settings = registry.settings
59 write_mod_dav_svn_config(settings)
60
57 # Trigger an event on mod dav svn configuration change.
61 # Trigger an event on mod dav svn configuration change.
58 trigger(ModDavSvnConfigChange(), registry)
62 trigger(ModDavSvnConfigChange(), registry)
59
63
General Comments 0
You need to be logged in to leave comments. Login now