Example #1
0
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)
Example #3
0
class ManageUsersValidator(NewUserValidator):
    Inactive = validators.Bool()
Example #4
0
class NewUserValidator(BaseUserValidator):
    Admin = validators.Bool()