all_acls = environ.env.config.get(ConfigKeys.ACL)
all_validators = all_acls["validation"]
if acl_type not in all_validators:
logger.warn("acl type "%s" does not have a validator" % acl_type)
return False
validator_func = all_validators[acl_type]["value"]
if not callable(validator_func):
logger.error("validator for acl type "%s" is not callable" % acl_type)
return False
if not isinstance(validator_func, BaseAclValidator):
logger.error(
"validator for acl type "%s" is not of instance BaseAclValidator but "%s"" %
(acl_type, str(type(validator_func))))
return False
// blank means we"re removing it