sprox.sa.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.sa.validatorselector.SAValidatorSelector(provider)

Bases: sprox._validatorselector.ValidatorSelector

default_validators = {<class 'sqlalchemy.types.Integer'>: <class 'formencode.validators.Int'>, <class 'sqlalchemy.types.Time'>: <class 'formencode.validators.DateValidator'>, <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'>}
name_based_validators
select(field)
class sprox.sa.validatorselector.ValidatorSelector(*args, **kw)

Bases: object

name_based_validators
select(field)

Discuss

blog comments powered by Disqus

Table Of Contents

Previous topic

sprox.sa.widgetselector

Next topic

sprox.mg.provider

This Page