still doing some work but checking in what i have so far

This commit is contained in:
brent s
2019-10-09 07:18:10 -04:00
parent 3ca56d7b5c
commit 108588827a
8 changed files with 259 additions and 70 deletions

9
aif/aif_util.py Normal file
View File

@@ -0,0 +1,9 @@
def xmlBool(xmlobj):
if isinstance(xmlobj, bool):
return (xmlobj)
if xmlobj.lower() in ('1', 'true'):
return(True)
elif xmlobj.lower() in ('0', 'false'):
return(False)
else:
return(None)