Mercurial > genshi > genshi-test
view examples/tutorial/geddit/form.py @ 783:6dc1a751804d
The match filter now only tests `START` events, as `END` events can not be matched and are otherwise processed together with the matched `START` event.
author | cmlenz |
---|---|
date | Mon, 14 Jul 2008 17:30:23 +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)