From b6c497d32b99eb64fcb5316db7422d357816b3dd Mon Sep 17 00:00:00 2001 From: Sergei Trofimov Date: Wed, 9 Sep 2015 14:32:27 +0100 Subject: [PATCH] Updated boolean to interpret 'off' as False --- wlauto/utils/types.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wlauto/utils/types.py b/wlauto/utils/types.py index df7b5a4f..419fcb0c 100644 --- a/wlauto/utils/types.py +++ b/wlauto/utils/types.py @@ -47,7 +47,7 @@ def boolean(value): e.g. boolean('0') and boolean('false') will both yield False. """ - false_strings = ['', '0', 'n', 'no'] + false_strings = ['', '0', 'n', 'no', 'off'] if isinstance(value, basestring): value = value.lower() if value in false_strings or 'false'.startswith(value):