sprox.validatorselector

validatorselecter Module

this contains the class which allows the ViewConfig to select the appropriate validator for the given field

Classes: Name Description ValidatorSelecter Parent Class SAValidatorSelector Selecter Based on sqlalchemy field types DatabaseViewValidatorSelector Database View always selects the same validator TableDefValidatorSelector Table def fields use the same validator

Exceptions: None

Functions: None

Copyright (c) 2007-10 Christopher Perkins Original Version by Christopher Perkins 2007 Released under MIT license.

Classes

class sprox.validatorselector.SAValidatorSelector(*args, **kw)

Bases: sprox.sa.validatorselector.SAValidatorSelector

default_validators = {<class 'sqlalchemy.types.Date'>: <class 'formencode.validators.DateValidator'>, <class 'sqlalchemy.types.Numeric'>: <class 'formencode.validators.Number'>, <class 'sqlalchemy.types.DateTime'>: <class 'formencode.validators.DateValidator'>, <class 'sqlalchemy.types.String'>: <class 'tw.forms.validators.UnicodeString'>, <class 'sqlalchemy.types.PickleType'>: <class 'tw.forms.validators.UnicodeString'>, <class 'sqlalchemy.types.Integer'>: <class 'formencode.validators.Int'>, <class 'sqlalchemy.types.Time'>: <class 'formencode.validators.DateValidator'>}
name_based_validators
select(field)
class sprox.validatorselector.ValidatorSelector(*args, **kw)

Bases: object

name_based_validators
select(field)

Discuss

blog comments powered by Disqus

Table Of Contents

Previous topic

sprox.widgetselector

Next topic

sprox.validators

This Page