Commit 6e5b4e12 authored by David Johnson's avatar David Johnson

Handle certain ints as bools.

parent ab09f0ae
...@@ -293,6 +293,12 @@ class flexlab: ...@@ -293,6 +293,12 @@ class flexlab:
if argdict.has_key("filtertype"): if argdict.has_key("filtertype"):
filtertype = argdict["filtertype"] filtertype = argdict["filtertype"]
if type(filtertype) == types.IntType:
if filtertype == 0:
filtertype = False
else:
filtertype = True
pass
if type(filtertype) != types.BooleanType: if type(filtertype) != types.BooleanType:
return FlexlabInvalidArgumentFault(13,"filtertype must be a bool!") return FlexlabInvalidArgumentFault(13,"filtertype must be a bool!")
pass pass
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment