one more update

This commit is contained in:
Miroslav Stampar 2011-02-12 10:24:09 +00:00
parent 25a3a64327
commit 1cd483f42f

View File

@ -478,10 +478,10 @@ def getValue(expression, blind=True, inband=True, error=True, time=True, fromUse
value = value.strip() value = value.strip()
if value.lower() in ("true", "false"): if value.lower() in ("true", "false"):
value = bool(value) value = bool(value)
elif value.capitalize() == "None":
value = None
elif value in ("1", "-1"): elif value in ("1", "-1"):
value = True value = True
elif value in ("0"):
value = False
else: else:
value = None value = None
elif isinstance(value, int): elif isinstance(value, int):