-------------------------------------------------------------------------------- Fedora Update Notification FEDORA-2024-93f21195a4 2024-11-08 03:29:49.305339 -------------------------------------------------------------------------------- Name : python-flask-wtf-decorators Product : Fedora 41 Version : 0.1.2 Release : 0.17.20200715.7fa5a26.fc41 URL : https://github.com/simpleapples/flask-wtf-decorators 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 -------------------------------------------------------------------------------- Update Information: Utilize unittest instead of the removed setup.py test command -------------------------------------------------------------------------------- ChangeLog: * Fri Oct 25 2024 Charalampos Stratakis <cstratak@xxxxxxxxxx> - 0.1.2-0.17.20200715.7fa5a26 - Utilize unittest instead of the removed setup.py test command Resolves: rhbz#2319657 -------------------------------------------------------------------------------- References: [ 1 ] Bug #2319657 - python-flask-wtf-decorators fails to build with setuptools 74+ https://bugzilla.redhat.com/show_bug.cgi?id=2319657 -------------------------------------------------------------------------------- This update can be installed with the "dnf" update program. Use su -c 'dnf upgrade --advisory FEDORA-2024-93f21195a4' at the command line. For more information, refer to the dnf documentation available at http://dnf.readthedocs.io/en/latest/command_ref.html#upgrade-command-label All packages are signed with the Fedora Project GPG key. More details on the GPG keys used by the Fedora Project can be found at https://fedoraproject.org/keys -------------------------------------------------------------------------------- -- _______________________________________________ package-announce mailing list -- package-announce@xxxxxxxxxxxxxxxxxxxxxxx To unsubscribe send an email to package-announce-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-announce@xxxxxxxxxxxxxxxxxxxxxxx Do not reply to spam, report it: https://pagure.io/fedora-infrastructure/new_issue