core (constants): "on" can now be used as True value in bool method.

This commit is contained in:
Goffi 2019-05-26 22:22:00 +02:00
commit a782b6e6e0

View file

@ -438,7 +438,7 @@ class Const(object):
def bool(cls, value):
"""@return (bool): bool value for associated constant"""
assert isinstance(value, basestring)
return value.lower() in (cls.BOOL_TRUE, "1", "yes")
return value.lower() in (cls.BOOL_TRUE, "1", "yes", "on")
@classmethod
def boolConst(cls, value):