Validation

class pyArango.validation.Bool(*args, **kwrags)[source]

The value must be a boolean

validate(value)[source]

The only function that a validator must implement. Must return True if erevything went well or a ValidationError otherwise

class pyArango.validation.Email(*args, **kwrags)[source]

Checks if the field contains an emailaddress

validate(value)[source]

The only function that a validator must implement. Must return True if erevything went well or a ValidationError otherwise

class pyArango.validation.Enumeration(allowed)[source]

The value must be in the allowed ones

validate(value)[source]

The only function that a validator must implement. Must return True if erevything went well or a ValidationError otherwise

class pyArango.validation.Int(*args, **kwrags)[source]

The value must be an integer

validate(value)[source]

The only function that a validator must implement. Must return True if erevything went well or a ValidationError otherwise

class pyArango.validation.Length(minLen, maxLen)[source]

validates that the value length is between given bounds

validate(value)[source]

The only function that a validator must implement. Must return True if erevything went well or a ValidationError otherwise

class pyArango.validation.NotNull(reject_zero=False, reject_empty_string=True)[source]

Checks that the Field has a non null value. False is not considered a Null Value

validate(value)[source]

The only function that a validator must implement. Must return True if erevything went well or a ValidationError otherwise

class pyArango.validation.Numeric(*args, **kwrags)[source]

checks if the value is numerical

validate(value)[source]

The only function that a validator must implement. Must return True if erevything went well or a ValidationError otherwise

class pyArango.validation.Range(lower, upper)[source]

The value must une [lower, upper] range

validate(value)[source]

The only function that a validator must implement. Must return True if erevything went well or a ValidationError otherwise

class pyArango.validation.String(*args, **kwrags)[source]

The value must be a string or unicode

validate(value)[source]

The only function that a validator must implement. Must return True if erevything went well or a ValidationError otherwise

class pyArango.validation.Validator(*args, **kwrags)[source]

All validators must inherit from this class

validate(value)[source]

The only function that a validator must implement. Must return True if erevything went well or a ValidationError otherwise