codekasten/wortschlucker/forms.py

7 lines
290 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)