Package turbogears :: Module validators :: Class Schema
[hide private]

Class Schema

source code


Modified Schema validator for TurboGears.

**Messages**

``badDictType``:
  The input must be dict-like (not a ``%(type)s``: ``%(value)r``)

``badType``:
  The input must be a string (not a ``%(type)s``: ``%(value)r``)

``empty``:
  Please enter a value

``missingValue``:
  Missing value

``noneType``:
  The input must be a string (not None)

``notExpected``:
  The input field ``%(name)s`` was not expected.

Nested Classes [hide private]

Inherited from formencode.api.FancyValidator: if_empty, if_invalid, if_invalid_python

Inherited from formencode.api.Validator: if_missing

Inherited from formencode.declarative.Declarative: __metaclass__

Instance Methods [hide private]
 
from_python(self, value, state=None)
For Declarative subclasses, this decorator will call the method on the cls.singleton() object if called as a class method (or as normal if called as an instance method).

Inherited from formencode.schema.Schema: __initargs__, add_chained_validator, add_field, add_pre_validator, assert_dict, empty_value, is_empty, subvalidators

Inherited from formencode.schema.Schema (private): _from_python, _to_python

Inherited from formencode.api.FancyValidator: assert_string, base64encode, to_python, validate_other, validate_python

Inherited from formencode.api.FancyValidator (private): _validate_noop

Inherited from formencode.api.Validator: __init__, all_messages, message

Inherited from formencode.declarative.Declarative: __call__, __repr__, __sourcerepr__

Inherited from formencode.declarative.Declarative (private): _source_repr_class

Inherited from object: __delattr__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __setattr__, __str__

Class Methods [hide private]

Inherited from formencode.api.Validator (private): _initialize_docstring

Inherited from formencode.declarative.Declarative: __classsourcerepr__, singleton

Static Methods [hide private]

Inherited from formencode.schema.Schema: __classinit__

Inherited from formencode.declarative.Declarative (private): _repr_vars

Class Variables [hide private]
  filter_extra_fields = True
  allow_extra_fields = True
  if_key_missing = None
  declarative_count = 71

Inherited from formencode.schema.Schema: __mutableattributes__, chained_validators, compound, fields, ignore_key_missing, messages, order, pre_validators

Inherited from formencode.schema.Schema (private): _messages

Inherited from formencode.api.FancyValidator: accept_python, not_empty, strip

Inherited from formencode.api.Validator: __singletonmethods__, gettextargs, repeating, use_builtins_gettext

Inherited from formencode.declarative.Declarative: __unpackargs__

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

from_python(self, value, state=None)

 

For Declarative subclasses, this decorator will call the method on the cls.singleton() object if called as a class method (or as normal if called as an instance method).

Overrides: formencode.api.Validator.from_python