core (memory): added 'no' value management in configuration's booleans
This commit is contained in:
parent
8f0cf4697b
commit
7aaea47da8
1 changed files with 1 additions and 1 deletions
|
|
@ -409,7 +409,7 @@ class Params(object):
|
|||
if attr == 'value':
|
||||
value_to_use = value if value is not None else node.getAttribute(attr) # we use value (user defined) if it exist, else we use node's default value
|
||||
if node.getAttribute('type') == 'bool':
|
||||
return value_to_use.lower() not in ('false', '0')
|
||||
return value_to_use.lower() not in ('false', '0', 'no')
|
||||
return value_to_use
|
||||
return node.getAttribute(attr)
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue