view examples/tutorial/geddit/form.py @ 1014:2069c7a0059c stable-0.7.x

Merge r1239 from trunk (fix assert with side-effect in xi:fallback directive processing).
author hodgestar
date Mon, 17 Jun 2013 20:54:10 +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)
Copyright (C) 2012-2017 Edgewall Software