Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import formencode
- class AddUserSchema(formencode.Schema):
- allow_extra_fields = True # for submit button
- name = formencode.validators.String(not_empty=True)
- email = formencode.validators.Email(resolve_domain=False)
- password = formencode.validators.PlainText(not_empty=True)
- class LoginSchema(formencode.Schema):
- allow_extra_fields = True # for submit button
- username = formencode.validators.String(not_empty=True)
- password = formencode.validators.PlainText(not_empty=True)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement