Package turbogears :: Module validators :: Class Number

Class Number

source code

                        object --+                
formencode.declarative.Declarative --+            
              formencode.api.Validator --+        
             formencode.api.FancyValidator --+    
                              TgFancyValidator --+

Validate a decimal number.


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

  Please enter a value

  The input must be a string (not None)

Nested Classes

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

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

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

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.api.Validator: __classinit__

Class Variables
  decimals = None
  declarative_count = 80

Inherited from TgFancyValidator: gettextargs

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

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

Inherited from formencode.declarative.Declarative: __mutableattributes__, __unpackargs__, counter


Inherited from object: __class__