##// END OF EJS Templates
fix(backend): fixed broken backends function after python3 migration...
super-admin -
r5524:fb58a2b4 default
parent child Browse files
Show More
@@ -73,7 +73,7 b' def load_pyramid_environment(global_conf'
73 load_rcextensions(root_path=settings_merged['here'])
73 load_rcextensions(root_path=settings_merged['here'])
74
74
75 # Limit backends to `vcs.backends` from configuration, and preserve the order
75 # Limit backends to `vcs.backends` from configuration, and preserve the order
76 for alias in rhodecode.BACKENDS.keys():
76 for alias in list(rhodecode.BACKENDS.keys()):
77 if alias not in settings['vcs.backends']:
77 if alias not in settings['vcs.backends']:
78 del rhodecode.BACKENDS[alias]
78 del rhodecode.BACKENDS[alias]
79
79
@@ -81,7 +81,7 b' def load_pyramid_environment(global_conf'
81 key=lambda item: settings['vcs.backends'].index(item[0]))
81 key=lambda item: settings['vcs.backends'].index(item[0]))
82 rhodecode.BACKENDS = collections.OrderedDict(_sorted_backend)
82 rhodecode.BACKENDS = collections.OrderedDict(_sorted_backend)
83
83
84 log.info('Enabled VCS backends: %s', rhodecode.BACKENDS.keys())
84 log.info('Enabled VCS backends: %s', list(rhodecode.BACKENDS.keys()))
85
85
86 # initialize vcs client and optionally run the server if enabled
86 # initialize vcs client and optionally run the server if enabled
87 vcs_server_uri = settings['vcs.server']
87 vcs_server_uri = settings['vcs.server']
General Comments 0
You need to be logged in to leave comments. Login now