view examples/tutorial/geddit/form.py @ 805:9b1f8f93d2bf stable-0.5.x

Block [999] and [1004] from being ported back to stable branch.
author cmlenz
date Thu, 05 Mar 2009 10:07: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)
Copyright (C) 2012-2017 Edgewall Software