Mercurial > genshi > genshi-test
view examples/tutorial/geddit/form.py @ 887:148c17f49111
More doc improvements.
author | cmlenz |
---|---|
date | Mon, 19 Apr 2010 08:28:47 +0000 |
parents | 71d3edd302ae |
children |
line wrap: on
line source
from formencode import Schema, validators class LinkForm(Schema): username = validators.UnicodeString(not_empty=True) url = validators.URL(not_empty=True, add_http=True, check_exists=False) title = validators.UnicodeString(not_empty=True) class CommentForm(Schema): username = validators.UnicodeString(not_empty=True) content = validators.UnicodeString(not_empty=True)