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
1837f39efd6f Sync (old) experimental inline branch with trunk@1027.
cmlenz
parents:
diff changeset
1 from formencode import Schema, validators
1837f39efd6f Sync (old) experimental inline branch with trunk@1027.
cmlenz
parents:
diff changeset
2
1837f39efd6f Sync (old) experimental inline branch with trunk@1027.
cmlenz
parents:
diff changeset
3
1837f39efd6f Sync (old) experimental inline branch with trunk@1027.
cmlenz
parents:
diff changeset
4 class LinkForm(Schema):
1837f39efd6f Sync (old) experimental inline branch with trunk@1027.
cmlenz
parents:
diff changeset
5 username = validators.UnicodeString(not_empty=True)
1837f39efd6f Sync (old) experimental inline branch with trunk@1027.
cmlenz
parents:
diff changeset
6 url = validators.URL(not_empty=True, add_http=True, check_exists=False)
1837f39efd6f Sync (old) experimental inline branch with trunk@1027.
cmlenz
parents:
diff changeset
7 title = validators.UnicodeString(not_empty=True)
1837f39efd6f Sync (old) experimental inline branch with trunk@1027.
cmlenz
parents:
diff changeset
8
1837f39efd6f Sync (old) experimental inline branch with trunk@1027.
cmlenz
parents:
diff changeset
9
1837f39efd6f Sync (old) experimental inline branch with trunk@1027.
cmlenz
parents:
diff changeset
10 class CommentForm(Schema):
1837f39efd6f Sync (old) experimental inline branch with trunk@1027.
cmlenz
parents:
diff changeset
11 username = validators.UnicodeString(not_empty=True)
1837f39efd6f Sync (old) experimental inline branch with trunk@1027.
cmlenz
parents:
diff changeset
12 content = validators.UnicodeString(not_empty=True)
Copyright (C) 2012-2017 Edgewall Software