Look at setting-specific part of export_settings to get validate
function, not
the whole dang dictionary
This commit is contained in:
parent
87340bcbf9
commit
e3100bb64a
1 changed files with 1 additions and 1 deletions
|
@ -225,7 +225,7 @@ class Module(ModuleManager.BaseModule):
|
||||||
|
|
||||||
def _config(self, export_settings, target, setting, value=None):
|
def _config(self, export_settings, target, setting, value=None):
|
||||||
if not value == None:
|
if not value == None:
|
||||||
validation = export_settings.get("validate", lambda x: x)
|
validation = export_settings[setting].get("validate", lambda x: x)
|
||||||
validated_value = validation(value)
|
validated_value = validation(value)
|
||||||
if not validated_value == None:
|
if not validated_value == None:
|
||||||
target.set_setting(setting, validated_value)
|
target.set_setting(setting, validated_value)
|
||||||
|
|
Loading…
Reference in a new issue