This commit is contained in:
Nikos Kouremenos 2005-08-18 19:25:12 +00:00
parent bd0a5230d9
commit 0455ce1e3f
1 changed files with 1 additions and 1 deletions

View File

@ -278,7 +278,7 @@ def get_file_path_from_dnd_dropped_uri(uri):
def from_xs_boolean_to_python_boolean(value):
# this is xs:boolean so 'true','false','1','0'
# convert those to True/False (python booleans)
if val in ('1', 'true'):
if value in ('1', 'true'):
val = True
else: # '0', 'false' or anything else
val = False