##// END OF EJS Templates
http: Allow http, pyro and custom implementations for scm app.
Martin Bornhold -
r962:a79a5a84 default
parent child Browse files
Show More
@@ -42,7 +42,7 b' from rhodecode.lib.exceptions import ('
42 42 NotAllowedToCreateUserError)
43 43 from rhodecode.lib.hooks_daemon import prepare_callback_daemon
44 44 from rhodecode.lib.middleware import appenlight
45 from rhodecode.lib.middleware.utils import scm_app
45 from rhodecode.lib.middleware.utils import scm_app, scm_app_http
46 46 from rhodecode.lib.utils import (
47 47 is_valid_repo, get_rhodecode_realm, get_rhodecode_base_path, SLUG_RE)
48 48 from rhodecode.lib.utils2 import safe_str, fix_PATH, str2bool, safe_unicode
@@ -173,14 +173,17 b' class SimpleVCS(object):'
173 173
174 174 @property
175 175 def scm_app(self):
176 custom_implementation = self.config.get('vcs.scm_app_implementation')
177 if custom_implementation and custom_implementation != 'pyro4':
178 log.info(
179 "Using custom implementation of scm_app: %s",
180 custom_implementation)
176 custom_implementation = self.config['vcs.scm_app_implementation']
177 if custom_implementation == 'http':
178 log.info('Using HTTP implementation of scm app.')
179 scm_app_impl = scm_app_http
180 elif custom_implementation == 'pyro4':
181 log.info('Using Pyro implementation of scm app.')
182 scm_app_impl = scm_app
183 else:
184 log.info('Using custom implementation of scm_app: "{}"'.format(
185 custom_implementation))
181 186 scm_app_impl = importlib.import_module(custom_implementation)
182 else:
183 scm_app_impl = scm_app
184 187 return scm_app_impl
185 188
186 189 def _get_by_id(self, repo_name):
General Comments 0
You need to be logged in to leave comments. Login now