##// END OF EJS Templates
fix(backend): fixed broken backends function after python3 migration
super-admin -
r5523:112c3403 stable
parent child Browse files
Show More
@@ -59,7 +59,7 b' def load_pyramid_environment(global_conf'
59 load_rcextensions(root_path=settings_merged['here'])
59 load_rcextensions(root_path=settings_merged['here'])
60
60
61 # Limit backends to `vcs.backends` from configuration, and preserve the order
61 # Limit backends to `vcs.backends` from configuration, and preserve the order
62 for alias in rhodecode.BACKENDS.keys():
62 for alias in list(rhodecode.BACKENDS.keys()):
63 if alias not in settings['vcs.backends']:
63 if alias not in settings['vcs.backends']:
64 del rhodecode.BACKENDS[alias]
64 del rhodecode.BACKENDS[alias]
65
65
@@ -67,7 +67,7 b' def load_pyramid_environment(global_conf'
67 key=lambda item: settings['vcs.backends'].index(item[0]))
67 key=lambda item: settings['vcs.backends'].index(item[0]))
68 rhodecode.BACKENDS = collections.OrderedDict(_sorted_backend)
68 rhodecode.BACKENDS = collections.OrderedDict(_sorted_backend)
69
69
70 log.info('Enabled VCS backends: %s', rhodecode.BACKENDS.keys())
70 log.info('Enabled VCS backends: %s', list(rhodecode.BACKENDS.keys()))
71
71
72 # initialize vcs client and optionally run the server if enabled
72 # initialize vcs client and optionally run the server if enabled
73 vcs_server_uri = settings['vcs.server']
73 vcs_server_uri = settings['vcs.server']
General Comments 0
You need to be logged in to leave comments. Login now