Package turbogears :: Module validators :: Class MultipleSelection

Class MultipleSelection

source code

                        object --+                    
                                 |                    
formencode.declarative.Declarative --+                
                                     |                
              formencode.api.Validator --+            
                                         |            
             formencode.api.FancyValidator --+        
                                             |        
         formencode.compound.CompoundValidator --+    
                                                 |    
                        formencode.foreach.ForEach --+
                                                     |
                                                    MultipleSelection

A default validator for SelectionFields with multiple selection.

**Messages**

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

``empty``:
  Please enter a value

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

Nested Classes
  if_missing
A dummy value used for parameters with no default.

Inherited from formencode.api.FancyValidator: if_invalid, if_invalid_python

Inherited from formencode.declarative.Declarative: __metaclass__

Instance Methods
 
to_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.foreach.ForEach: attempt_convert, empty_value

Inherited from formencode.compound.CompoundValidator: __init__, subvalidators

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

Inherited from formencode.api.Validator: all_messages, message

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

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

Class Methods

Inherited from formencode.declarative.Declarative: __classsourcerepr__, singleton

Static Methods

Inherited from formencode.compound.CompoundValidator: __classinit__

Class Variables
  if_empty = []
A dummy value used for parameters with no default.
  declarative_count = 69

Inherited from formencode.foreach.ForEach: accept_iterator, convert_to_list, repeating

Inherited from formencode.compound.CompoundValidator: __mutableattributes__, __unpackargs__, validators

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

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

Inherited from formencode.declarative.Declarative: counter

Properties

Inherited from object: __class__

Method Details

to_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.to_python