Up to [cvs.NetBSD.org] / pkgsrc / www / py-wtforms
Request diff between arbitrary revisions
Keyword substitution: kv
Default branch: MAIN
py-wtforms: updated to 3.2.1 Version 3.2.1 - Fix :class:`~fields.SelectMultipleBase` import. :issue:`861` :pr:`862` Version 3.2.0 - Translations update: korean, chinese (traditional), portugese, russian, dutch, kazakh, swedish, turkish, slovak, ukranian, spanish, french. - Move the repository to the pallets-eco organization. :pr:`854` - Stop supporting Python 3.9 and start supporting Python 3.13 :pr:`855` - Removed `required` flag support from :class:`~fields.HiddenWidget`, :class:`~fields.RangeWidget` and :class:`~fields.SelectWidget` to conform to W3C :pr:`810` - :class:`~wtforms.validators.NoneOf` and :class:`~wtforms.validators.AnyOf` can validate multiple valued fields like :class:`~fields.SelectMultipleField` :pr:`538` :pr:`807` - Use GHA and pre-commit workflows inspired from Flask. :pr:`856` :pr:`860` - ⚠️Breaking change⚠️: Some deprecated code was removed (:pr:`859`): - :class:`~wtforms.Flags` can no longer be tuples. :issue:`467` - `iter_choices` needs a tuple of 4 items :issue:`816` - ⚠️Breaking change⚠️: The key for form errors moved from :data:`None` to empty string `""`. :issue:`829` :pr:`858` .. note:: If you need to keep the old behavior you can set the ``_form_error_key`` parameter of your form to :data:`None`.
py-wtforms: update to 3.1.2. Version 3.1.2 ------------- Released 2024-01-06 - Fix :class:`~fields.SelectMultipleField` value coercion on validation. :issue:`822` :pr:`823` Version 3.1.1 ------------- Released 2023-11-01 - Display :class:`~wtforms.Flags` values in their repr. :pr:`808` - :class:`~fields.SelectField` and :class:`~fields.SelectMultipleField` ``choices`` can be `None` if `validate_choice` is `False` :pr:`809` - Documentation improvements :pr:`812` :pr:`815` :pr:`817` - Unit tests improvements :pr:`813` - Python 3.12 support :pr:`818` - Restored support for 3-items tuple return value from `iter_choices` :pr:`816` Version 3.1.0 ------------- Released 2023-10-10 - Documentation improvements :pr:`726` :pr:`733` :pr:`749` :pr:`767` :pr:`788` :pr:`789` :pr:`793` - Translation improvements :pr:`732` :pr:`734` :pr:`754` - Implement :class:`~fields.ColorField` :pr:`755` - Delayed import of ``email_validator``. :issue:`727` - ``<option>`` attributes can be passed by the :class:`~fields.SelectField` ``choices`` parameter :issue:`692` :pr:`739`. ⚠️breaking change⚠️: `iter_choices` now returns a tuple of 4 items - Use the standard datetime formats by default for :class:`~fields.DateTimeLocalField` :pr:`761` - Python 3.11 support :pr:`763` - Added shorter format to :class:`~fields.DateTimeLocalField` defaults :pr:`761` - Stop support for python 3.7 :pr:`794` - Added shorter format to :class:`~fields.WeekField` defaults :pr:`765` - Move to pyproject.toml :pr:`796` - URL validator takes a ``allow_ip`` parameter :pr:`800` - Implement :class:`~validators.ReadOnly` and :class:`~validators.Disabled` `:pr:`788`
py-wtforms: Update to 3.0.1. Version 3.0.1 ------------- Released 2021-12-23 - Fixed :class:`~fields.DateTimeField` and other similar fields can handle multiple formats. :issue:`720` :pr:`721` - Stop support for python 3.6 :pr:`722` Version 3.0.0 ------------- Released 2021-11-07 - Fixed :class:`~fields.RadioField` validators. :issue:`477` :pr:`615` - :meth:`~fields.FormField.populate_obj` always calls :func:`setattr` :pr:`675` - WTForms has a new logo. :issue:`569` :pr:`689` - Fixed :class:`~fields.RadioField` `render_kw` rendering. :issue:`490` :pr:`628` :pr:`688` - Support for optgroups in :class:`~fields.SelectField` and :class:`~fields.SelectMultipleField`. :issue:`656` :pr:`667` - Minor documentation fix. :issue:`701` - Custom separators for :class:`~fields.FieldList`. :issue:`681` :pr:`694` - :class:`~fields.DateTimeField`, :class:`~fields.DateField` and :class:`~fields.TimeField` support time formats that removes leading zeros. :pr:`703` - Refactoring: split `fields/core.py` and `fields/simple.py` :pr:`710` Version 3.0.0a1 --------------- Released 2020-11-23 - Drop support for Python < 3.6. :pr:`554` - :class:`~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. :pr:`355` - Specified version of Babel required for setup to avoid errors. :pr:`430` - Replaced use of ``getattr``/``setattr`` with regular variable access. :issue:`482` - :class:`ValueError` raised by a validator are handled like regular exceptions. Validators need to raise :class:`~validators.ValidationError` or :class:`~validators.StopValidation` to make a validation fail. :issue:`445` - :class:`~fields.SelectField`, :class:`~fields.SelectMultipleField` and :class:`~fields.RadioField` *choices* parameter can be a callable. :pr:`608` - Choices shortcut for :class:`~fields.core.SelectMultipleField`. :issue:`603` :pr:`605` - Forms can have form-level errors. :issue:`55` :pr:`595` - Implemented :class:`~wtforms.fields.core.MonthField`. :pr:`530` :pr:`593` - Filters can be inline. :meth:`form.BaseForm.process` takes a *extra_filters* parameter. :issue:`128` :pr:`592` - Fields can be passed the ``name`` argument to use a HTML name different than their Python name. :issue:`205`, :pr:`601` - Render attribute names like ``for_`` and ``class_`` are normalized consistently so later values override those specified earlier. :issue:`449`, :pr:`596` - Flags can take non-boolean values. :issue:`406` :pr:`467` - Widgets are HTML5 by default. :issue:`594` :pr:`614` - Fixed a bug when the :class:`~wtforms.fields.core.SelectField` choices are list of strings. :pr:`598` - Error messages standardization. :issue:`613` :pr:`620` :pr:`626` :pr:`627` - :class:`~wtforms.fields.core.SelectMultipleField` `validate_choice` bugfix. :issue:`606` :pr:`642` - Fixed SelectMultipleField validation when using choices list shortcut. :issue:`612` :pr:`661`
py-wtforms: Update to 2.2.1. Version 2.2.1 ------------- Released on June 7th, 2018 - :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`_, `#401`_) .. _#291: https://github.com/wtforms/wtforms/issues/291 .. _#401: https://github.com/wtforms/wtforms/issues/401 Version 2.2 ----------- Released on June 2nd, 2018 - 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 that provides the ``'required'`` flag, such as :class:`~validators.DataRequired`. (`#361`_) - Fix a compatibility issue with SQLAlchemy 2.1 that caused :class:`~ext.sqlalchemy.fields.QuerySelectField` to fail with ``ValueError: too many values to unpack``. (`#391`_) .. _#248: https://github.com/wtforms/wtforms/pull/248 .. _#251: https://github.com/wtforms/wtforms/pull/251 .. _#254: https://github.com/wtforms/wtforms/pull/254 .. _#280: https://github.com/wtforms/wtforms/pull/280 .. _#281: https://github.com/wtforms/wtforms/pull/281 .. _#286: https://github.com/wtforms/wtforms/pull/286 .. _#294: https://github.com/wtforms/wtforms/pull/294 .. _#302: https://github.com/wtforms/wtforms/pull/302 .. _#361: https://github.com/wtforms/wtforms/pull/361 .. _#391: https://github.com/wtforms/wtforms/pull/391
Update py-wtforms to 2.1. Version 2.1 ----------- Released December 15, 2015 - Added `render_kw` to allow default rendering time options. - Updated / added a number of localizations - Updated docs - Allow widgets to set flags
Update py-wtforms to 2.0.2. Version 2.0.2 ------------- Released January 18, 2015 - Added more localizations and updated some. - Validators for email and URL can validate IDNA-encoded domain names and new TLDs - Better DeprecationWarnings - Support localization files in /usr/share/locale (for distro packaging)
Update py-wtforms to 2.0.1. Version 2.0.1 ------------- Released July 1, 2014 - Update wheel install to conditionally install ordereddict for python 2.6. - Doc improvements Version 2.0 ----------- Released May 20, 2014 - Add new `class Meta` paradigm for much more powerful customization of WTForms. - Move i18n into core. Deprecate `wtforms.ext.i18n`. - Move CSRF into core. Deprecate `wtforms.ext.csrf`. - Fix issue rendering SelectFields with ``value=True`` - Make `DecimalField` able to use babel locale-based number formatting. - Drop Python 3.2 support (Python3 support for 3.3+ only) - passing ``attr=False`` to WTForms widgets causes the value to be ignored. - `Unique` validator in `wtforms.ext.sqlalchemy` has been removed.
Update py-wtforms to 1.0.5. Version 1.0.5 ------------- Released September 10, 2013 - Fix a bug in validators which causes translations to happen once then clobber any future translations. - ext.sqlalchemy / ext.appengine: minor cleanups / deprecation. - Allow blank string and the string 'false' to be considered false values for BooleanField (configurable). This is technically a breaking change, but it is not likey to affect the majority of users adversely. - ext.i18n form allows passing LANGUAGES to the constructor.
Update py-wtforms to 1.0.4. (Forgot to commit updated PLIST in previous.) Bump PKGREVISION.
Update py-wtforms to 1.0.3. Version 1.0.3 ------------- Released January 24, 2013 - Tests complete in python 3.2/3.3. - Localization for ru, fr. - Minor fixes in documentation for clarity. - FieldList now can take validators on the entire FieldList. - ext.sqlalchemy model_form: * Fix issue with QuerySelectField * Fix issue in ColumnDefault conversion * Support Enum type - Field class now allows traversal in Django 1.4 templates.
Import WTForms-1.0.2 as www/py-wtforms. WTForms is a flexible forms validation and rendering library for python web development.