- Update to 2.3.1:

* All modules in ``wtforms.ext`` show a deprecation warning on import.
  * Fixed a bug when :class:`~fields.SelectField` choices is ``None``.
  * Restored ``HTMLString`` and ``escape_html`` as aliases for
    MarkupSafe functions. Their use shows a ``DeprecationWarning``.
  * ``Form.validate`` takes an ``extra_validators`` parameter, mapping
    field names to lists of extra validator functions. This matches
    ``BaseForm.validate``.
  * Update locale catalogs.
  * Drop support for Python 2.6, 3.3, and 3.4.
  * :class:`~fields.SelectField` uses ``list()`` to construct a new list
    of choices.
  * Permitted underscores in ``HostnameValidation``.
  * :class:`~validators.URL` validator now allows query parameters in
    the URL.
  * Updated ``false_values`` param in ``BooleanField`` docs.
  * Fixed broken format string in Arabic translation
  * Updated French and Japanese translations.
  * Updated Ukrainian translation.
  * ``FieldList`` error list keeps entries in order for easier
    identification of which fields had errors.
  * :class:`~validators.Length` gives a more helpful error message when
    ``min`` and ``max`` are the same value.
  * :class:`~fields.SelectField` no longer coerces ``None`` to
    ``"None"`` allowing use of ``"None"`` as an option.
  * The :class:`~widgets.TextArea` widget prepends a ``\r\n`` newline
    when rendering to account for browsers stripping an initial line for
    display. This does not affect the value.
  * HTML5 :class:`~fields.html5.IntegerField` and
    :class:`~fields.html5.RangeInput` don't render the ``step="1"``
    attribute by default.
  * ``aria_`` args are rendered the same way as ``data_`` args, by
    converting underscores to hyphens. ``aria_describedby="name*help"``
    becomes ``aria*describedby="name-help"``.
  * Added a ``check_validators`` method to :class:`~fields.Field` which
    checks if the given validators are both callable, and not classes.
  * ``form.errors`` is not cached and will update if an error is
    appended to a field after access.
  * :class:`~wtforms.validators.NumberRange` correctly handle NaN
    values.
  * :class:`~fields.IntegerField` checks input type when processing data.
  * Added a parameter to :class:`~fields.SelectField` to skip choice
    validation.
  * Choices which name and data are the same do not need to use tuples.
  * Added more documentation on HTML5 fields.
  * HTML is escaped using MarkupSafe instead of the previous internal
    implementation. :func:`~widgets.core.escape_html` is removed,
    replaced by :func:`markupsafe.escape`.
    :class:`~widgets.core.HTMLString` is removed, replaced by
    :class:`markupsafe.Markup`.
  * Fixed broken IPv6 validator, validation now uses the ``ipaddress``
    package.
  * :class:`~fields.core.Label` text is escaped before rendering.
  * Email validation is now handled by an optional library,
  ``email_validator``.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-WTForms?expand=0&rev=17
This commit is contained in:
2020-07-30 07:00:48 +00:00
committed by Git OBS Bridge
parent 6417d394ea
commit 0429402855
4 changed files with 69 additions and 6 deletions

View File

@@ -1,3 +1,62 @@
-------------------------------------------------------------------
Thu Jul 30 06:57:03 UTC 2020 - Steve Kowalik <steven.kowalik@suse.com>
- Update to 2.3.1:
* All modules in ``wtforms.ext`` show a deprecation warning on import.
* Fixed a bug when :class:`~fields.SelectField` choices is ``None``.
* Restored ``HTMLString`` and ``escape_html`` as aliases for
MarkupSafe functions. Their use shows a ``DeprecationWarning``.
* ``Form.validate`` takes an ``extra_validators`` parameter, mapping
field names to lists of extra validator functions. This matches
``BaseForm.validate``.
* Update locale catalogs.
* Drop support for Python 2.6, 3.3, and 3.4.
* :class:`~fields.SelectField` uses ``list()`` to construct a new list
of choices.
* Permitted underscores in ``HostnameValidation``.
* :class:`~validators.URL` validator now allows query parameters in
the URL.
* Updated ``false_values`` param in ``BooleanField`` docs.
* Fixed broken format string in Arabic translation
* Updated French and Japanese translations.
* Updated Ukrainian translation.
* ``FieldList`` error list keeps entries in order for easier
identification of which fields had errors.
* :class:`~validators.Length` gives a more helpful error message when
``min`` and ``max`` are the same value.
* :class:`~fields.SelectField` no longer coerces ``None`` to
``"None"`` allowing use of ``"None"`` as an option.
* The :class:`~widgets.TextArea` widget prepends a ``\r\n`` newline
when rendering to account for browsers stripping an initial line for
display. This does not affect the value.
* HTML5 :class:`~fields.html5.IntegerField` and
:class:`~fields.html5.RangeInput` don't render the ``step="1"``
attribute by default.
* ``aria_`` args are rendered the same way as ``data_`` args, by
converting underscores to hyphens. ``aria_describedby="name*help"``
becomes ``aria*describedby="name-help"``.
* Added a ``check_validators`` method to :class:`~fields.Field` which
checks if the given validators are both callable, and not classes.
* ``form.errors`` is not cached and will update if an error is
appended to a field after access.
* :class:`~wtforms.validators.NumberRange` correctly handle NaN
values.
* :class:`~fields.IntegerField` checks input type when processing data.
* Added a parameter to :class:`~fields.SelectField` to skip choice
validation.
* Choices which name and data are the same do not need to use tuples.
* Added more documentation on HTML5 fields.
* HTML is escaped using MarkupSafe instead of the previous internal
implementation. :func:`~widgets.core.escape_html` is removed,
replaced by :func:`markupsafe.escape`.
:class:`~widgets.core.HTMLString` is removed, replaced by
:class:`markupsafe.Markup`.
* Fixed broken IPv6 validator, validation now uses the ``ipaddress``
package.
* :class:`~fields.core.Label` text is escaped before rendering.
* Email validation is now handled by an optional library,
``email_validator``.
-------------------------------------------------------------------
Mon Jul 29 12:02:19 UTC 2019 - pgajdos@suse.com