Yafowil

Latest version: v3.0.1

Safety actively analyzes 638437 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 2 of 6

2.3.1

------------------

- Do not dump string values as JSON data in ``yafowil.utils.as_data_attrs``.
[rnix]

- Rename ``yafowil.utils.generic_html5_attrs`` to
``yafowil.utils.as_data_attrs``.
[rnix]

2.3

----------------

- Python 3 Compatibility.
[rnix]

- Convert doctests to unittests.
[rnix]

- Cache results of ``yafowil.utils.get_plugin_names`` by namespace.
[rnix]

- Introduce ``yafowil.base.Factory.clear`` function. Used in tests to prepare
``yafowil.base.factory`` singleton as required.
[rnix]

- Create deepcopy of resources in ``YafowilResources.__init__`` to prevent
modification of the original resource definitions.
[rnix]

- Implement ``ExtractionError.__eq__`` to make them comparable.
[rnix]

- Do not access deprecated ``Exception.message`` any more in
``common.error_renderer``. Add ``msg`` attribute to ``ExtractionError``
directly and use this one to keep error translating sane.
[rnix]

- Add html5 data attribute support to ``form_edit_renderer``.
[rnix]

2.2.4

------------------

- Do not set ``persist`` property for ``proxy`` blueprint in factory defaults.
[rnix]

- Translate datatype label used to generate extraction error in
``generic_datatype_extractor`` if datatype conversion fails.
[rnix]

- Add ``generic_datatype_extractor`` to ``email`` blueprint. Allowed datatypes
are ``str`` and ``unicode``.
[rnix]

- Prevent ``KeyError`` in ``select_display_renderer`` if multivalued selection
and a value no longer available in vocab.
[rnix]

2.2.3

------------------

- Fix ``number_extractor``. Return ``UNSET`` if extracted value is ``UNSET``.
Check ``min`` and ``max`` for ``None`` explicitely to ensure ``0`` bounds
get considered.
[rnix]

2.2.2

------------------

- ``yafowil.common.generic_datatype_extractor`` considers ``emptyvalue`` used
as default empty value for datatype conversion.
[rnix]

- Improve ``yafowil.common.select_edit_renderer``. Split up code and consider
``datatype`` and ``emptyvalue`` when dealing with vocabularies.
[rnix]

- ``yafowil.utils.convert_values_to_datatype`` and
``yafowil.utils.convert_value_to_datatype`` considers empty value handling
and accept default ``empty_value`` keyword argument.
[rnix]

- Introduce ``yafowil.utils.EMPTY_VALUE`` marker.
[rnix]

2.2.1

------------------

- Introduce ``hybrid_renderer`` and ``leaf`` widget property which gets
considered in ``hybrid_renderer`` and ``hybrid_extractor``. Use
``hybrid_renderer`` in ``div`` blueprint.
[rnix]

- Consider data attributes in div renderer.
[rnix]

- Fix rendering of empty div renderer.
[rnix]

- Explicitely check for ``None`` and ``UNSET`` before rendering empty value in
``generic_display_renderer``.
[rnix]

Page 2 of 6

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.