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)
|
|
|
|
|
2010-04-15 13:50:58 +02:00
|
|
|
class SubmitForm(formencode.Schema):
|
|
|
|
submitter = formencode.validators.UnicodeString(strip=True, not_empty=True)
|
|
|
|
content = formencode.validators.UnicodeString(strip=True, not_empty=True)
|
|
|
|
|