core (constants): "on" can now be used as True value in bool method.
This commit is contained in:
parent
deb3358a58
commit
a782b6e6e0
1 changed files with 1 additions and 1 deletions
|
|
@ -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):
|
||||
|
|
|
|||
Loading…
Reference in a new issue