+ # check if a field is a boolean field
+ def is_bool_field(self, field):
+ for (f,_,default,__,___,____) in Config.supported:
+ if field==f: return isinstance(default,bool)
+ return None
+
+ # to accept strings as bools
+ def is_true(self,value):
+ if value==True: return True
+ if isinstance(value,types.StringTypes) and value.lower()=='true': return True
+