Metadata-Version: 1.1
Name: formalize
Version: 0.1.4
Summary: Form processing and validation
Home-page: http://ollycope.com/software/formalize/
Author: Oliver Cope
Author-email: oliver@redgecko.org
License: BSD
Description: Formalize: form processing and validation
        =========================================
        
        Formalize is designed to process and validate web form data cleanly and easily.
        
        A FormValidator object looks like this::
        
        	>>> v = FormValidator(
        	... 	firstname=Unicode(),
        	... 	surname=Unicode(required="Please enter your surname"),
        	... 	age=Int(greaterthan(18, "You must be at least 18 to proceed"), required=False),
        	... )
        
        And can be applied to any data held in a dictionary-like object::
        
                >>> input_data = {
                ...    'firstname': u'Fred',
                ...    'surname': u'Jones',
                ...    'age': u'21',
                ... }
                >>> v.process(input_data)
                {'age': 21, 'firstname': u'Fred', 'surname': u'Jones'}
        
        When validation fails, a ``ValidationError`` is raised. This contains error
        messages for all the failing validation tests::
        
                >>> input_data = {
                ...    'firstname': u'Fred',
                ...    'age': u'16',
                ... }
                >>> v.process(input_data)
                Traceback (most recent call last):
                  ...
        	ValidationError: ValidationError([('surname', 'Please enter your
        	surname'), ('age', 'You must be at least 18 to proceed')])
        
        Documentation and download
        ---------------------------
        
        * `Documentation for the latest version <http://www.ollycope.com/software/formalize>`_.
        
        * Download the python egg from the `Python Package Index <http://pypi.python.org/pypi/formalize/>`_
        
        * View the source code on `patch-tag.com <http://patch-tag.com/r/oliver/formalize>`_
        
        Licensing
        ----------
        
        Formalize is available under the terms of the `new BSD licence <http://www.opensource.org/licenses/bsd-license.php>`_.
        
        
        Changes
        =========
        
        Version 0.1.4
        
        * Bugfix for default format argument to Date validator
        
        Version 0.1.3
        
        * Allowed multiple, independent validators to be applied for the same source field.
        
        Version 0.1.2
        
        * Support for tracking validation context in ListValidators
        
        * Support for multiple When objects in a MappingValidator
        
        * Bugfixes for DateValidator 
        
        Version 0.1.1
        
        * Bugfix for ListValidator error reporting
        
        Version 0.1.0
        
        * Initial public release
        
Platform: UNKNOWN
Classifier: Development Status :: 3 - Alpha
Classifier: Environment :: Web Environment
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: BSD License
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python
Classifier: Topic :: Internet :: WWW/HTTP
Classifier: Topic :: Software Development :: Libraries :: Python Modules
