Mercurial > genshi > genshi-test
view examples/tutorial/geddit/form.py @ 897:85e4678337cf
Update changelog and copyright years.
author | cmlenz |
---|---|
date | Thu, 22 Apr 2010 12:01:10 +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)