Revisions of python-WTForms

buildservice-autocommit accepted request 1129149 from Matej Cepl's avatar Matej Cepl (mcepl) (revision 32)
baserev update by copy to link target
Matej Cepl's avatar Matej Cepl (mcepl) accepted request 1129138 from Antonio Larrosa's avatar Antonio Larrosa (alarrosa) (revision 31)
- Use %{?sle15_python_module_pythons}
Markéta Machová's avatar Markéta Machová (mcalabkova) accepted request 1129046 from Antonio Larrosa's avatar Antonio Larrosa (alarrosa) (revision 30)
- Update to 3.1.1:
  - Display Flags values in their repr.
  - ~SelectField and SelectMultipleField choices can be None if
    validate_choice is False
  - Documentation improvements
  - Unit tests improvements
  - Python 3.12 support
  - Restored support for 3-items tuple return value from
    iter_choices
- Update to 3.1.0:
  - Documentation improvements
  - Translation improvements
  - Implement :class:~fields.ColorField
  - Delayed import of email_validator.
  - <option> attributes can be passed by the
    :class:~fields.SelectField choices parameter
  - Use the standard datetime formats by default for
    :class:~fields.DateTimeLocalField
  - Python 3.11 support
  - Added shorter format to
    :class:~fields.DateTimeLocalField defaults
  - Stop support for python 3.7
  - Added shorter format to :class:~fields.WeekField defaults
  - Move to pyproject.toml
  - URL validator takes a allow_ip parameter
  - Implement :class:~validators.ReadOnly and
    :class:~validators.Disabled
buildservice-autocommit accepted request 1113572 from Steve Kowalik's avatar Steve Kowalik (StevenK) (revision 29)
baserev update by copy to link target
Steve Kowalik's avatar Steve Kowalik (StevenK) committed (revision 28)
- Switch to pyproject macros.
- Stop using greedy globs in %files.
- We no longer need to skip any tests.
buildservice-autocommit accepted request 970997 from Matej Cepl's avatar Matej Cepl (mcepl) (revision 27)
baserev update by copy to link target
Matej Cepl's avatar Matej Cepl (mcepl) accepted request 970996 from Matej Cepl's avatar Matej Cepl (mcepl) (revision 26)
- Follow the change of the email_validator -> email-validator
  Python package.
buildservice-autocommit accepted request 970472 from Matej Cepl's avatar Matej Cepl (mcepl) (revision 25)
baserev update by copy to link target
Matej Cepl's avatar Matej Cepl (mcepl) accepted request 970471 from Matej Cepl's avatar Matej Cepl (mcepl) (revision 24)
- Update to 3.0.1:
  - Fixed ~fields.DateTimeField and other similar fields can
    handle multiple formats.
  - Fixed ~fields.RadioField validators.
  - ~fields.FormField.populate_obj always calls :func:setattr
  - WTForms has a new logo.
  - Fixed ~fields.RadioField render_kw rendering.
  - Support for optgroups in ~fields.SelectField and
    ~fields.SelectMultipleField.
  - Minor documentation fix.
  - Custom separators for ~fields.FieldList.
  - ~fields.DateTimeField, ~fields.DateField and
    ~fields.TimeField support time formats that removes leading
    zeros.
  - Refactoring: split fields/core.py and fields/simple.py
  - Drop support for Python < 3.6.
  - ~fields.StringField sets data to None when form data is empty
    and an initial value was not provided. Although it previously
    set an empty string, None is consistent with the behavior of
    other fields.
  - Specified version of Babel required for setup to avoid
    errors.
  - Replaced use of getattr/setattr with regular variable access.
  - ValueError raised by a validator are handled like regular
    exceptions. Validators need to raise
    ~validators.ValidationError or ~validators.StopValidation to
    make a validation fail.
  - ~fields.SelectField, ~fields.SelectMultipleField and
    ~fields.RadioField choices parameter can be a callable.
  - Choices shortcut for ~fields.core.SelectMultipleField.
  - Forms can have form-level errors.
  - Implemented ~wtforms.fields.core.MonthField.
  - Filters can be inline. :meth:form.BaseForm.process takes
    a extra_filters parameter.
  - Fields can be passed the name argument to use a HTML name
    different than their Python name.
  - Render attribute names like for_ and class_ are normalized
    consistently so later values override those specified
    earlier.
  - Flags can take non-boolean values.
  - Widgets are HTML5 by default.
  - Fixed a bug when the ~wtforms.fields.core.SelectField choices
    are list of strings.
  - Error messages standardization.
  - ~wtforms.fields.core.SelectMultipleField validate_choice
    bugfix.
  - Fixed SelectMultipleField validation when using choices list
    shortcut.
Steve Kowalik's avatar Steve Kowalik (StevenK) accepted request 917203 from Antonio Larrosa's avatar Antonio Larrosa (alarrosa) (revision 23)
- Put translated catalogs in -lang subpackages for each python
  flavor.

- Build the translations catalogs so builtin messages can be
  translated (this is needed to run the test_wtform_xlation test
  in python-Flask-Security-Too 4.1.0)
buildservice-autocommit accepted request 897757 from Matej Cepl's avatar Matej Cepl (mcepl) (revision 22)
baserev update by copy to link target
Matej Cepl's avatar Matej Cepl (mcepl) committed (revision 21)
- Update to version 2.3.3+git.1621448902.a55be54:
  * Changelog
  * render_kw tests for SelectField and MultipleSelectField
  * moved test to test_radio
  * pass RadioField (SelectFieldBase) render_kw dict in _Option class
  * Changelog
  * Logo integration
  * Changelog
  * Changelog
  * Always call setattr in FormField.populate
  * move test
  * add test
  * fix radiofield required bug
- Skip failing tests with localization file (gh#wtforms/wtforms#697)
buildservice-autocommit accepted request 833358 from Steve Kowalik's avatar Steve Kowalik (StevenK) (revision 20)
baserev update by copy to link target
Steve Kowalik's avatar Steve Kowalik (StevenK) committed (revision 19)
- Drop Requires on the code package on the doc package.
Steve Kowalik's avatar Steve Kowalik (StevenK) committed (revision 18)
- Update to 2.3.3:
  * This release includes the translation files that were missing in the 2.3.2
    release.
  * Fixed a bug with :class:`~fields.SelectField` choices shortcut at form
    submission.
Steve Kowalik's avatar Steve Kowalik (StevenK) committed (revision 17)
- 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``.
buildservice-autocommit accepted request 719691 from Tomáš Chvátal's avatar Tomáš Chvátal (scarabeus_iv) (revision 16)
baserev update by copy to link target
Tomáš Chvátal's avatar Tomáš Chvátal (scarabeus_iv) accepted request 719613 from Petr Gajdos's avatar Petr Gajdos (pgajdos) (revision 15)
- version update to 2.2.1
  * :class:`~fields.StringField` only sets ``data = ''` when form data
    is empty and an initial value was not provided. This fixes an issue
    where the default value wasn't rendered with the initial form.
    (`#291`_, `#355`_, `#401`_)
  * Merged new and updated translations from the community.
  * Passing ``data_`` args to render a field converts all the
    underscores to hyphens when rendering the HTML attribute, not just
    the first one. ``data_foo_bar`` becomes ``data-foo-bar``. (`#248`_)
  * The :class:`~validators.UUID` validator uses the :class:`uuid.UUID`
    class instead of a regex. (`#251`_)
  * :class:`~fields.SelectField` copies the list of ``choices`` passed
    to it so modifying an instance's choices will not modify the global
    form definition. (`#286`_)
  * Fields call :meth:`~fields.Field.process_formdata` even if the raw
    data is empty. (`#280`_)
  * Added a :class:`~fields.MultipleFileField` to handle a multi-file
    input. :class:`~fields.FileField` continues to handle only one
    value. The underlying :class:`~widgets.FileInput` widget gained a
    ``multiple`` argument. (`#281`_)
  * :class:`~fields.SelectField` choices can contain HTML (MarkupSafe
    ``Markup`` object or equivalent API) and will be rendered properly.
    (`#302`_)
  * :class:`~fields.TimeField` and
    :class:`html5.TimeField <fields.html5.TimeField>` were added.
    (`#254`_)
  * Improved :class:`~validators.Email`. Note that it is still
    unreasonable to validate all emails with a regex and you should
    prefer validating by actually sending an email. (`#294`_)
  * Widgets render the ``required`` attribute when using a validator
buildservice-autocommit accepted request 654074 from Matej Cepl's avatar Matej Cepl (mcepl) (revision 14)
baserev update by copy to link target
Matej Cepl's avatar Matej Cepl (mcepl) committed (revision 13)
Clean up the SPEC file
Displaying revisions 1 - 20 of 32
openSUSE Build Service is sponsored by