Show More
@@ -255,7 +255,7 b' class BasicAuth(AuthBasicAuthenticator):' | |||||
255 |
|
255 | |||
256 |
|
256 | |||
257 | def attach_context_attributes(context): |
|
257 | def attach_context_attributes(context): | |
258 | rc_config = SettingsModel().get_all_settings() |
|
258 | rc_config = SettingsModel().get_all_settings(cache=True) | |
259 |
|
259 | |||
260 | context.rhodecode_version = rhodecode.__version__ |
|
260 | context.rhodecode_version = rhodecode.__version__ | |
261 | context.rhodecode_edition = config.get('rhodecode.edition') |
|
261 | context.rhodecode_edition = config.get('rhodecode.edition') | |
@@ -425,7 +425,7 b' class BaseController(WSGIController):' | |||||
425 | _route_name = '.'.join([environ['pylons.routes_dict']['controller'], |
|
425 | _route_name = '.'.join([environ['pylons.routes_dict']['controller'], | |
426 | environ['pylons.routes_dict']['action']]) |
|
426 | environ['pylons.routes_dict']['action']]) | |
427 |
|
427 | |||
428 | self.rc_config = SettingsModel().get_all_settings() |
|
428 | self.rc_config = SettingsModel().get_all_settings(cache=True) | |
429 | self.ip_addr = get_ip_addr(environ) |
|
429 | self.ip_addr = get_ip_addr(environ) | |
430 |
|
430 | |||
431 | # The rhodecode auth user is looked up and passed through the |
|
431 | # The rhodecode auth user is looked up and passed through the |
General Comments 0
You need to be logged in to leave comments.
Login now