Mercurial > genshi > genshi-test
view examples/tutorial/geddit/form.py @ 653:ca37a9301a20
Fix test to work on Python 2.5.1 which has a different exception message.
author | cmlenz |
---|---|
date | Thu, 22 Nov 2007 19:19:17 +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)