# HG changeset patch # User Martin Bornhold # Date 2016-10-12 11:36:26 # Node ID 7a52996dacac69ba183596752a6e98bbf6436cd0 # Parent b82fa46d4723bfecebd2adbb0eb772bd716f1e34 config: Add argument to convert settings to lowercase or not. Most settings should be converted to lowercase during app init. But at least file system paths should not lower cased. Threfore we need a switch to control it. diff --git a/rhodecode/config/middleware.py b/rhodecode/config/middleware.py --- a/rhodecode/config/middleware.py +++ b/rhodecode/config/middleware.py @@ -473,5 +473,8 @@ def _list_setting(settings, name, defaul settings[name] = aslist(raw_value) -def _string_setting(settings, name, default): - settings[name] = settings.get(name, default).lower() +def _string_setting(settings, name, default, lower=True): + value = settings.get(name, default) + if lower: + value = value.lower() + settings[name] = value