##// END OF EJS Templates
config: Add method to sanitize list values from ini file.
Martin Bornhold -
r583:a2d789ba default
parent child Browse files
Show More
@@ -421,3 +421,13 b' def sanitize_settings_and_apply_defaults'
421
421
422 def _bool_setting(settings, name, default):
422 def _bool_setting(settings, name, default):
423 settings[name] = asbool(settings.get(name, default))
423 settings[name] = asbool(settings.get(name, default))
424
425
426 def _list_setting(settings, name, default):
427 raw_value = settings.get(name, default)
428
429 # Check if we get a setting with the old syntax (comma separated).
430 if ',' in raw_value:
431 raw_value = raw_value.replace(',', ' ')
432
433 settings[name] = aslist(raw_value)
General Comments 0
You need to be logged in to leave comments. Login now