https://bugzilla.redhat.com/show_bug.cgi?id=1853510 Bug ID: 1853510 Summary: Review Request: flask-wtf-decorators Product: Fedora Version: rawhide Status: NEW Component: Package Review Assignee: nobody@xxxxxxxxxxxxxxxxx Reporter: jkadlcik@xxxxxxxxxx QA Contact: extras-qa@xxxxxxxxxxxxxxxxx CC: package-review@xxxxxxxxxxxxxxxxxxxxxxx Target Milestone: --- Classification: Fedora Spec URL: https://download.copr.fedorainfracloud.org/results/frostyx/flask-wtf-decorators/fedora-rawhide-x86_64/01516597-flask-wtf-decorators/flask-wtf-decorators.spec SRPM URL: https://download.copr.fedorainfracloud.org/results/frostyx/flask-wtf-decorators/fedora-rawhide-x86_64/01516597-flask-wtf-decorators/flask-wtf-decorators-0.1.2-20200702.7fa5a26.fc33.src.rpm 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 -- You are receiving this mail because: You are on the CC list for the bug. You are always notified about changes to this product and component _______________________________________________ package-review mailing list -- package-review@xxxxxxxxxxxxxxxxxxxxxxx To unsubscribe send an email to package-review-leave@xxxxxxxxxxxxxxxxxxxxxxx Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/ List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines List Archives: https://lists.fedoraproject.org/archives/list/package-review@xxxxxxxxxxxxxxxxxxxxxxx