Handle unvalidated values in depth

This commit is contained in:
guerler
2016-01-15 17:03:07 -05:00
parent 817f36626d
commit fc434d62e9
+3
View File
@@ -2154,6 +2154,9 @@ class Tool( object, Dictifiable ):
def jsonify(v):
if isinstance(v, UnvalidatedValue):
v = v.value
while isinstance( v, UnvalidatedValue ):
v = v.value
return v
# check if value is numeric
isnumber = False