/usr/share/doc/python-genshi-doc/examples/tutorial/geddit/form.py is in python-genshi-doc 0.7-3.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 | 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)
|