Skip to content

Instantly share code, notes, and snippets.

@jvanasco
jvanasco / formgenerator.py
Created February 9, 2012 00:55 — forked from ericrasmussen/formgenerator.py
FormGenerator to extend Deform functionality
"""
Simple module to ease form handling with ``Deform``. The provided
``FormGenerator`` class handles repetitive tasks like validation,
xhr requests, and recovering from exceptions thrown by the model.
### Begin example scenario: Adding a new user
from myschemas import UserSchema
from formgenerator import (