codekasten/wortschlucker/forms.py
lars 81d84b3498 added submission of content
added more detailed poll view
changed default settings to be more verbose
2010-04-15 11:50:58 +00:00

11 lines
486 B
Python

import formencode
class PollForm(formencode.Schema):
author = formencode.validators.UnicodeString(strip=True, not_empty=True)
title = formencode.validators.UnicodeString(strip=True, not_empty=True)
description = formencode.validators.UnicodeString(strip=True, not_empty=True)
class SubmitForm(formencode.Schema):
submitter = formencode.validators.UnicodeString(strip=True, not_empty=True)
content = formencode.validators.UnicodeString(strip=True, not_empty=True)