Package turbogears :: Module validators :: Class Money

Class Money

source code

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

Validate a monetary value with currency.


  Invalid number format

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

  Empty values not allowed

  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
  messages = {'badFormat': _('Invalid number format'), 'empty': ...
  declarative_count = 79

Inherited from TgFancyValidator: gettextargs

Inherited from formencode.api.FancyValidator: accept_python, 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__

Class Variable Details


{'badFormat': _('Invalid number format'), 'empty': _('Empty values not\