3139: boolean command line options have to be specified as foo=true ...

The solution was suggested by Doug Blank.


svn: r22709
This commit is contained in:
Paul Franklin 2013-07-21 20:04:30 +00:00
parent 5e13868e45
commit a327bf6337

View File

@ -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') conv_dbstr_to_unicode = lambda x: conv_to_unicode(x, 'UTF-8')
def cast_to_bool(val): def cast_to_bool(val):
if val == str(True): return val in ['True', 'true', _('True'), _('true'), '1'] # 3139
return True
return False
def get_type_converter(val): def get_type_converter(val):
""" """