Information for RPM python3-flask-wtf-decorators-0.1.2-0.3.20200715.7fa5a26.fc33.noarch.rpm
ID | 653079 | ||||||||
---|---|---|---|---|---|---|---|---|---|
Name | python3-flask-wtf-decorators | ||||||||
Version | 0.1.2 | ||||||||
Release | 0.3.20200715.7fa5a26.fc33 | ||||||||
Epoch | |||||||||
Arch | noarch | ||||||||
Summary | Use decorators to validate forms | ||||||||
Description | Flask-WTF-Decorators is easy to use. You can define a view that requires validation. from flask-wtf-decorators import FormValidator form_validator = FormValidator() @form_validator.validate_form(TestForm) @app.route('/', methods=['GET', 'POST']) def index(form): pass You can tell Flask-WTF-Decorators what to do when a form is illegal. To do this you should provide a callback for error_handler. @form_validator.error_handler def error_handler(errors): return jsonify({'errors': errors}), 400 | ||||||||
Build Time | 2020-07-29 17:11:55 GMT | ||||||||
Size | 13.10 KB | ||||||||
91dcad83de8a8a81f30d7039157ef79c | |||||||||
License | MIT | ||||||||
Provides |
|
||||||||
Obsoletes | No Obsoletes | ||||||||
Conflicts | No Conflicts | ||||||||
Requires |
|
||||||||
Recommends | No Recommends | ||||||||
Suggests | No Suggests | ||||||||
Supplements | No Supplements | ||||||||
Enhances | No Enhances | ||||||||
Files | |||||||||
Component of | No Buildroots |