Yafowil

Latest version: v3.0.1

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

Scan your dependencies

Page 1 of 6

3.0.2

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

- Nothing changed yet.

3.0.1

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

- File extractor raises an ``ExtractionError`` if file action is ``replace``
but no file is uploaded instead of silently changing the action to ``keep``.
[rnix]

- Document ``vocabulary`` property of ``file`` blueprint.
[rnix]

- Add ``yafowil.common.mimetype_extractor`` and use in ``file`` blueprint.
[rnix]

- Add runtime data path to error message if persist writer not found.
[rnix]

3.0

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

- Python 3.7+ support.
[rnix, jensens]

- Try to translate plain error message in ``error_renderer`` in case of no
``message_tag`` defined.
[jensens]

- Add ``valid_class`` and ``valid_class_default`` as opposite of ``error_class``
and ``error_class_default`` to mark extracted values as valid.
[jensens]

- Add ``button`` blueprint.
[jensens]

**Internals:**

- Remove usage of ``Nodespaces`` behavior.
[rnix]

- Replace deprecated use of ``Nodify`` by ``MappingNode``.
[rnix]

- Replace deprecated use of ``NodeChildValidate`` by ``MappingConstraints``.
[rnix]

- Replace deprecated use of ``Adopt`` by ``MappingAdopt``.
[rnix]

- Remove ``NodeChildValidate`` and ``Adopt`` behaviors from ``WidgetAttributes``.
[rnix]

- Add ``push_state`` and ``pop_state`` to factory. Used in ``YafowilTestCase``
for saving and restoring factory state. This is needed when yafowil tests run
in compound with foreign tests to avoid breaking possible custom factory
configuration.
[rnix]

**Breaking changes:**

- Remove B/C behavior of ``callable_value`` function. No longer calls callable
without parameters as fallback. Always expect widget and data arguments in
signature.
[jensens]

- ``datatype`` converters now always gets passed the raw extracted value only.
Prior to removing B/C behavior from ``callable_value`` it was possible to use
callables taking widget and data as arguments returning the real converter
callable. This behavior was never intended to be supported for datatype
conversion.
[jensens]

2.3.4

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

- Rename deprecated ``WidgetAttributes.allow_non_node_childs`` to
``allow_non_node_children``.
[rnix]

2.3.3

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

- Ensure ``select`` tag not renders without closing tag if no options.
[rnix]

2.3.2

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

- Refactor yafowil plugin lookup. Improves performance.
[rnix, jensens]

- Use ``logger.warning`` instead of deprecated ``logger.warn``.
[rnix]

- Add ``yafowil.utils.callable_value``.
[rnix]

- Fix ``yafowil.utils.cssid`` to return unicode in order to prevent malformed
rendering in python 3.
[rnix]

Page 1 of 6

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.