annotate examples/tutorial/geddit/form.py @ 907:bb813ef5fe25
experimental-inline
inline branch: merged r1129 from trunk.
author |
cmlenz |
date |
Wed, 28 Apr 2010 21:36:59 +0000 |
parents |
1837f39efd6f |
children |
|
rev |
line source |
820
|
1 from formencode import Schema, validators
|
|
2
|
|
3
|
|
4 class LinkForm(Schema):
|
|
5 username = validators.UnicodeString(not_empty=True)
|
|
6 url = validators.URL(not_empty=True, add_http=True, check_exists=False)
|
|
7 title = validators.UnicodeString(not_empty=True)
|
|
8
|
|
9
|
|
10 class CommentForm(Schema):
|
|
11 username = validators.UnicodeString(not_empty=True)
|
|
12 content = validators.UnicodeString(not_empty=True)
|