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

Handle certain ints as bools.

parent ab09f0ae
......@@ -293,6 +293,12 @@ class flexlab:
if argdict.has_key("filtertype"):
filtertype = argdict["filtertype"]
if type(filtertype) == types.IntType:
if filtertype == 0:
filtertype = False
filtertype = True
if type(filtertype) != types.BooleanType:
return FlexlabInvalidArgumentFault(13,"filtertype must be a bool!")
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