codekasten/wortschlucker/forms.py

12 lines
486 B
Python
Raw Normal View History

2010-04-14 20:03:44 +02:00
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)