From a327bf6337563552564d069019e34a4b8667c75f Mon Sep 17 00:00:00 2001 From: Paul Franklin Date: Sun, 21 Jul 2013 20:04:30 +0000 Subject: [PATCH] 3139: boolean command line options have to be specified as foo=true ... The solution was suggested by Doug Blank. svn: r22709 --- gramps/gen/utils/cast.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/gramps/gen/utils/cast.py b/gramps/gen/utils/cast.py index ec6a02065..d7d2015b7 100644 --- a/gramps/gen/utils/cast.py +++ b/gramps/gen/utils/cast.py @@ -48,9 +48,7 @@ from ..constfunc import conv_to_unicode, conv_to_unicode_direct, UNITYPE, STRTYP conv_dbstr_to_unicode = lambda x: conv_to_unicode(x, 'UTF-8') def cast_to_bool(val): - if val == str(True): - return True - return False + return val in ['True', 'true', _('True'), _('true'), '1'] # 3139 def get_type_converter(val): """