diff options
author | Jeroen van Meeuwen (Kolab Systems) <vanmeeuwen@kolabsys.com> | 2012-12-04 15:16:55 +0000 |
---|---|---|
committer | Jeroen van Meeuwen (Kolab Systems) <vanmeeuwen@kolabsys.com> | 2012-12-04 15:16:55 +0000 |
commit | f868fb47ce41acc21de706ef3d92b30bbd5e261f (patch) | |
tree | e0c3fbe06b71a390d6dfa498923a5cc6f4163f3a | |
parent | 603d521bbdd0a02a418e6d788892a9c6e48f5b8a (diff) | |
download | pykolab-f868fb47ce41acc21de706ef3d92b30bbd5e261f.tar.gz |
1, being a string when read from the configuration file, equals to true as well
-rw-r--r-- | pykolab/utils.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pykolab/utils.py b/pykolab/utils.py index 4516297..4fca016 100644 --- a/pykolab/utils.py +++ b/pykolab/utils.py @@ -403,7 +403,7 @@ def true_or_false(val): if isinstance(val, basestring) or isinstance(val, str): val = val.lower() - if val in [ "true", "yes", "y" ]: + if val in [ "true", "yes", "y", "1" ]: return True else: return False |