##// END OF EJS Templates
svn-support: Use repo root path from DB to generate mod-dav-svn config. Fixes #4203
Martin Bornhold -
r826:f17dcf57 default
parent child Browse files
Show More
@@ -25,4 +25,3 b" config_file_path = 'svn.proxy.config_fil"
25 generate_config = 'svn.proxy.generate_config'
25 generate_config = 'svn.proxy.generate_config'
26 list_parent_path = 'svn.proxy.list_parent_path'
26 list_parent_path = 'svn.proxy.list_parent_path'
27 location_root = 'svn.proxy.location_root'
27 location_root = 'svn.proxy.location_root'
28 parent_path_root = 'svn.proxy.parent_path_root'
@@ -25,6 +25,7 b' from pyramid.renderers import render'
25
25
26 from rhodecode.lib.utils import get_rhodecode_realm
26 from rhodecode.lib.utils import get_rhodecode_realm
27 from rhodecode.model.db import RepoGroup
27 from rhodecode.model.db import RepoGroup
28 from rhodecode.model.settings import SettingsModel
28 from . import config_keys
29 from . import config_keys
29
30
30
31
@@ -38,11 +39,13 b' def generate_mod_dav_svn_config(settings'
38 available repository group because the mod_dav_svn module does not support
39 available repository group because the mod_dav_svn module does not support
39 repositories organized in sub folders.
40 repositories organized in sub folders.
40 """
41 """
42 parent_path_root = SettingsModel().get_ui_by_section_and_key(
43 'paths', '/').ui_value
41 config = _render_mod_dav_svn_config(
44 config = _render_mod_dav_svn_config(
42 settings[config_keys.parent_path_root],
45 parent_path_root=parent_path_root,
43 settings[config_keys.list_parent_path],
46 list_parent_path=settings[config_keys.list_parent_path],
44 settings[config_keys.location_root],
47 localtion_root=settings[config_keys.location_root],
45 RepoGroup.get_all_repo_groups())
48 repo_groups=RepoGroup.get_all_repo_groups())
46 _write_mod_dav_svn_config(config, settings[config_keys.config_file_path])
49 _write_mod_dav_svn_config(config, settings[config_keys.config_file_path])
47
50
48
51
General Comments 0
You need to be logged in to leave comments. Login now