def get_as_bool(self,key, default=None): val=utils.is_true(default) if key in self.dict: try: val=utils.is_true(self.dict[key]) except: pass return val
def set_as_bool(self,key,val): self.set_as_str(key,utils.is_true(val))