summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJeroen van Meeuwen (Kolab Systems) <vanmeeuwen@kolabsys.com>2012-12-04 15:16:55 +0000
committerJeroen van Meeuwen (Kolab Systems) <vanmeeuwen@kolabsys.com>2012-12-04 15:16:55 +0000
commitf868fb47ce41acc21de706ef3d92b30bbd5e261f (patch)
treee0c3fbe06b71a390d6dfa498923a5cc6f4163f3a
parent603d521bbdd0a02a418e6d788892a9c6e48f5b8a (diff)
downloadpykolab-f868fb47ce41acc21de706ef3d92b30bbd5e261f.tar.gz
1, being a string when read from the configuration file, equals to true as well
-rw-r--r--pykolab/utils.py2
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