##// END OF EJS Templates
config: Use prepared settings from app init to setup the vcs connection.
Martin Bornhold -
r627:84e47054 default
parent child Browse files
Show More
@@ -212,16 +212,16 b' def dbsession(func):'
212 def vcsconnection(func):
212 def vcsconnection(func):
213 def __wrapper(func, *fargs, **fkwargs):
213 def __wrapper(func, *fargs, **fkwargs):
214 if rhodecode.CELERY_ENABLED and not rhodecode.CELERY_EAGER:
214 if rhodecode.CELERY_ENABLED and not rhodecode.CELERY_EAGER:
215 backends = config['vcs.backends'] = aslist(
215 settings = rhodecode.PYRAMID_SETTINGS
216 config.get('vcs.backends', 'hg,git'), sep=',')
216 backends = settings['vcs.backends']
217 for alias in rhodecode.BACKENDS.keys():
217 for alias in rhodecode.BACKENDS.keys():
218 if alias not in backends:
218 if alias not in backends:
219 del rhodecode.BACKENDS[alias]
219 del rhodecode.BACKENDS[alias]
220 utils.configure_pyro4(config)
220 utils.configure_pyro4(settings)
221 utils.configure_vcs(config)
221 utils.configure_vcs(settings)
222 connect_vcs(
222 connect_vcs(
223 config['vcs.server'],
223 settings['vcs.server'],
224 utils.get_vcs_server_protocol(config))
224 utils.get_vcs_server_protocol(settings))
225 ret = func(*fargs, **fkwargs)
225 ret = func(*fargs, **fkwargs)
226 return ret
226 return ret
227
227
General Comments 0
You need to be logged in to leave comments. Login now