Fedora Packages

python3-flask-wtf-decorators Subpackage of python-flask-wtf-decorators

Use decorators to validate forms

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

Releases Overview

Release Stable Testing
Fedora Rawhide 0.1.2-0.14.20200715.7fa5a26.fc40 -
Fedora 40 0.1.2-0.14.20200715.7fa5a26.fc40 -
Fedora 39 0.1.2-0.12.20200715.7fa5a26.fc39 -
Fedora 38 0.1.2-0.10.20200715.7fa5a26.fc38 -
File a new bug report »
Package Info

You can contact the maintainers of this package via email at python-flask-wtf-decorators dash maintainers at fedoraproject dot org.



Sources on Pagure