Mercurial > genshi > mirror
view examples/tutorial/geddit/form.py @ 686:92efe764ec81 experimental-match-fastpaths
Add experimental branch for work on match fast-paths (such as the patch on #183).
author | cmlenz |
---|---|
date | Fri, 22 Feb 2008 15:14:20 +0000 |
parents | 756e7418e10c |
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)