diff --git a/tercen/client/context.py b/tercen/client/context.py index fe859af..18a8308 100644 --- a/tercen/client/context.py +++ b/tercen/client/context.py @@ -402,6 +402,16 @@ def progress( self, message, actual, total): def operator_property(self, name, typeFn=str, default=None): props = self.context.cubeQuery.operatorSettings.operatorRef.propertyValues + + def tercenBool(value): + if value == "true": + return True + else: + return False + + if typeFn == bool: + typeFn = tercenBool + for p in props: if p.name == name: if p.value is None: