Property Validators

class mogwai.properties.validators.BaseValidator(message=None, code=None)
code = u'invalid'
message = u'Enter a valid value.'
class mogwai.properties.validators.BooleanValidator(message=None, code=None)
code = u'invalid'
message = u'Enter a valid Boolean.'
class mogwai.properties.validators.DateTimeUTCValidator(message=None, code=None)
code = u'invalid'
message = u'Not a valid UTC DateTime: {}'
class mogwai.properties.validators.DateTimeValidator(message=None, code=None)
code = u'invalid'
message = u'Not a valid DateTime: {}'
class mogwai.properties.validators.DecimalValidator(message=None, code=None)
code = u'invalid'
data_types = (<type 'float'>, <class 'decimal.Decimal'>)
message = u'Enter a valid number.'
class mogwai.properties.validators.DictValidator(message=None, code=None)
code = u'invalid'
message = u'Enter a valid dict'
class mogwai.properties.validators.EmailValidator(regex=None, message=None, code=None)
code = u'invalid'
message = u'Enter a valid email address: {}'
regex = <_sre.SRE_Pattern object at 0x2a64080>
class mogwai.properties.validators.FloatValidator(message=None, code=None)
code = u'invalid'
data_types = (<type 'float'>,)
message = u'Enter a valid number.'
class mogwai.properties.validators.IntegerValidator(message=None, code=None)
code = u'invalid'
data_types = (<type 'int'>, <type 'long'>)
message = u'Enter a valid number.'
class mogwai.properties.validators.ListValidator(message=None, code=None)
code = u'invalid'
data_types = (<type 'tuple'>, <type 'list'>)
message = u'Enter a valid list'
class mogwai.properties.validators.LongValidator(message=None, code=None)
code = u'invalid'
data_types = (<type 'int'>, <type 'long'>)
message = u'Enter a valid number.'
class mogwai.properties.validators.NumericValidator(message=None, code=None)
code = u'invalid'
data_types = (<type 'float'>, <type 'int'>, <type 'long'>, <class 'decimal.Decimal'>)
message = u'Enter a valid number.'
class mogwai.properties.validators.PositiveIntegerValidator(message=None, code=None)
code = u'invalid'
data_types = (<type 'int'>, <type 'long'>)
message = u'Enter a valid number.'
class mogwai.properties.validators.RegexValidator(regex=None, message=None, code=None)
code = u'invalid'
message = u'Enter a valid value.'
regex = u''
class mogwai.properties.validators.StringValidator(message=None, code=None)
code = u'invalid'
data_type = (<type 'basestring'>,)
message = u'Enter a valid string: {}'
class mogwai.properties.validators.URLValidator(regex=None, message=None, code=None)
code = u'invalid'
message = u'Enter a valid URL address: {}'
regex = <_sre.SRE_Pattern object at 0x2a6a3b0>