<?xml version="1.0" encoding="UTF-8"?>
<metadata xmlns="http://linux.duke.edu/metadata/common" xmlns:rpm="http://linux.duke.edu/metadata/rpm" packages="2">
<package type="rpm">
  <name>flask-wtf-decorators</name>
  <arch>noarch</arch>
  <version epoch="0" ver="0.1.2" rel="20200702.7fa5a26.fc33"/>
  <checksum type="sha256" pkgid="YES">2d53859f502a51f526b3ff18675db895763f330955f2b23a6cbee974ee73cb93</checksum>
  <summary>Use decorators to validate forms</summary>
  <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</description>
  <packager></packager>
  <url>https://github.com/simpleapples/flask-wtf-decorators</url>
  <time file="1593723164" build="1593723161"/>
  <size package="13112" installed="6765" archive="9664"/>
  <location href="01516597-flask-wtf-decorators/flask-wtf-decorators-0.1.2-20200702.7fa5a26.fc33.noarch.rpm"/>
  <format>
    <rpm:license>MIT</rpm:license>
    <rpm:vendor></rpm:vendor>
    <rpm:group>Unspecified</rpm:group>
    <rpm:buildhost>ip-172-30-2-142.ec2.internal</rpm:buildhost>
    <rpm:sourcerpm>flask-wtf-decorators-0.1.2-20200702.7fa5a26.fc33.src.rpm</rpm:sourcerpm>
    <rpm:header-range start="5096" end="10193"/>
    <rpm:provides>
      <rpm:entry name="flask-wtf-decorators" flags="EQ" epoch="0" ver="0.1.2" rel="20200702.7fa5a26.fc33"/>
      <rpm:entry name="python3.9dist(flask-wtf-decorators)" flags="EQ" epoch="0" ver="0.1.2"/>
      <rpm:entry name="python3dist(flask-wtf-decorators)" flags="EQ" epoch="0" ver="0.1.2"/>
    </rpm:provides>
    <rpm:requires>
      <rpm:entry name="python(abi)" flags="EQ" epoch="0" ver="3.9"/>
      <rpm:entry name="python3-flask"/>
      <rpm:entry name="python3.9dist(flask)" flags="GE" epoch="0" ver="0.7"/>
      <rpm:entry name="python3.9dist(flask-wtf)" flags="GE" epoch="0" ver="0.9"/>
    </rpm:requires>
  </format>
</package>
<package type="rpm">
  <name>flask-wtf-decorators</name>
  <arch>src</arch>
  <version epoch="0" ver="0.1.2" rel="20200702.7fa5a26.fc33"/>
  <checksum type="sha256" pkgid="YES">d7df3b7e7b362a1d672623ed249d6152d88cd0b4501e6e7e2ee5607554d1d761</checksum>
  <summary>Use decorators to validate forms</summary>
  <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</description>
  <packager></packager>
  <url>https://github.com/simpleapples/flask-wtf-decorators</url>
  <time file="1593723165" build="1593723157"/>
  <size package="11944" installed="4842" archive="5252"/>
  <location href="01516597-flask-wtf-decorators/flask-wtf-decorators-0.1.2-20200702.7fa5a26.fc33.src.rpm"/>
  <format>
    <rpm:license>MIT</rpm:license>
    <rpm:vendor></rpm:vendor>
    <rpm:group>Unspecified</rpm:group>
    <rpm:buildhost>ip-172-30-2-142.ec2.internal</rpm:buildhost>
    <rpm:sourcerpm></rpm:sourcerpm>
    <rpm:header-range start="5096" end="7489"/>
    <rpm:provides>
      <rpm:entry name="flask-wtf-decorators" flags="EQ" epoch="0" ver="0.1.2" rel="20200702.7fa5a26.fc33"/>
    </rpm:provides>
    <rpm:requires>
      <rpm:entry name="python3-devel"/>
    </rpm:requires>
  </format>
</package>
</metadata>