HTML form management and validation
Project description
Flatland manages the mapping between structured Python application data and the flat key/value namespace of forms. Features include:
Declarative form specification
Conversion to and from native Python types and Unicode
Structured data: lists, dicts, lists of dicts, etc.
JavaScript-safe name flattening by default
Schema-driven, directed expansion of incoming key/value pairs- only expected request data is examined and parsed
Compound fields
Validation
Strong value defaulting, pre-populating re-populating and roundtripping
Namespacing: easily manage multiple forms in a single page
Works on form and JSON data
Flatland data is not anonymous- values retain knowledge of their location in the form hierarchy and validation status. Flatland tries to provide both pythonic data access in application code and also simple and foolproof data access in Web templates.
http://bitbucket.org/jek/flatland/get/tip.zip#egg=flatland-dev