debianmemberportfolio/ddportfolioservice/model/form.py
Jan Dittberner d86965304f add form validation
validate input in ddportfolio controller
input validation schema in model/form.py
error message display and style added
2009-01-21 00:11:19 +01:00

8 lines
295 B
Python

import formencode
class DeveloperData(formencode.Schema):
allow_extra_fields = True
filter_extra_fields = True
name = formencode.validators.String(not_empty=True)
email = formencode.validators.Email(not_empty=True)
username = formencode.validators.PlainText(not_empty=True)