Jan Dittberner
d86965304f
validate input in ddportfolio controller input validation schema in model/form.py error message display and style added
8 lines
295 B
Python
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)
|