# HG changeset patch # User Goffi # Date 1393365793 -3600 # Node ID f27d736428f1d413ed484baa6f79ad545bdae73c # Parent 3ee2ec7ec010cdce8839b9d989cb2069530c9630 core (memory): added 'no' value management in configuration's booleans diff -r 3ee2ec7ec010 -r f27d736428f1 src/memory/memory.py --- a/src/memory/memory.py Tue Feb 25 23:01:26 2014 +0100 +++ b/src/memory/memory.py Tue Feb 25 23:03:13 2014 +0100 @@ -409,7 +409,7 @@ 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)