About Site Map Submit Contact Us Log in | Create an account
Create an account Log In
Average Rating
User Rating:
Visitors Rating:
My rating:

Write review
See full specifications

linux default iconformalize Publisher's description

Formalize is designed to process and validate web form data cleanly and easily.

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')])

System Requirements:

No special requirements.
Program Release Status:
Program Install Support: Install and Uninstall

formalize Tags:

Click on a tag to find related softwares

Is formalize your software?

Manage your software

Most Popular

linux default icon GDB 7.4
GDB, the GNU Project debugger, allows you to see what is going on `inside' another program while it... Read more
linux default icon Coral 0.9.1
Coral is a tool and a development platform to create and transform models and modeling languages.
linux default icon Forum Paid Plus Script 6.1
Forum Paid Pay Per Post Exchange is targeted at forum owners who wish to...
linux default icon sdo 0.6.5
Converts oracle SDO_GEOMETRY objects to WKT and GeoJSON.
linux default icon Get Paid Plus Script 6.1
Get Paid Plus Script

Related Category

» Other (877)
» Tools & Editors (359)
» Web Development (146)