class RequestAccessValidator(BaseUserValidator): ManageAreaRequest = validators.Bool() ManageAreaDetail = validators.UnicodeString() chained_validators = [ validators.RequireIfPredicate(is_manage_area_detail_required, 'ManageAreaDetail') ]
class AltNameSchema(validators.Schema): if_key_missing = None Delete = validators.Bool() Culture = validators.ActiveCulture() AltName = validators.UnicodeString(max=200)
class ManageUsersValidator(NewUserValidator): Inactive = validators.Bool()
class NewUserValidator(BaseUserValidator): Admin = validators.Bool()