gavo.formal.types module

Form types.

class gavo.formal.types.Boolean(name=None, required=None, missing=None, immutable=None, validators=None)[source]

Bases: Type

class gavo.formal.types.Date(name=None, required=None, missing=None, immutable=None, validators=None)[source]

Bases: Type

class gavo.formal.types.Decimal(name=None, required=None, missing=None, immutable=None, validators=None)[source]

Bases: Type

Forms type for Python 2.4’s decimal.Decimal type.

class gavo.formal.types.File(name=None, required=None, missing=None, immutable=None, validators=None)[source]

Bases: Type

class gavo.formal.types.Float(name=None, required=None, missing=None, immutable=None, validators=None)[source]

Bases: Type

class gavo.formal.types.Integer(name=None, required=None, missing=None, immutable=None, validators=None)[source]

Bases: Type

class gavo.formal.types.RichText(type, value)[source]

Bases: object

A data structure for the RichTextType to use

class gavo.formal.types.RichTextType(**kwds)[source]

Bases: Type

Forms type used for rich text

validate(value)[source]
class gavo.formal.types.Sequence(type=None, **k)[source]

Bases: Type

type = None
validate(value)[source]
class gavo.formal.types.String(**k)[source]

Bases: Type

strip = False
validate(value)[source]
class gavo.formal.types.Time(name=None, required=None, missing=None, immutable=None, validators=None)[source]

Bases: Type