Chameleon

Latest version: v4.5.4

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

Scan your dependencies

Page 13 of 19

2.5.1

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

Bugfixes:

- The symbol names "convert", "decode" and "translate" are now no
longer set as read-only *compiler internals*. This fixes issue 65.

- Fixed an issue where a macro extension chain nested two levels (a
template uses a macro that extends a macro) would lose the middle
slot definitions if slots were defined nested.

The compiler now throws an error if a nested slot definition is used
outside a macro extension context.

2.5.0

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

Features:

- An expression type ``structure:`` is now available which wraps the
expression result as *structure* such that it is not escaped on
insertion, e.g.::

<div id="content">
${structure: context.body}
</div>

This also means that the ``structure`` keyword for ``tal:content``
and ``tal:replace`` now has an alternative spelling via the
expression type ``structure:``.

- The string-based template constructor now accepts encoded input.

2.4.6

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

Bugfixes:

- The ``tal:on-error`` statement should catch all exceptions.

- Fixed issue that would prevent escaping of interpolation expression
values appearing in text.

2.4.5

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

Bugfixes:

- The ``tal:on-error`` handler should have a ``error`` variable
defined that has the value of the exception thrown.

- The ``tal:on-error`` statement is a substitution statement and
should support the "text" and "structure" insertion methods.

2.4.4

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

Bugfixes:

- An encoding specified in the XML document preamble is now read and
used to decode the template input to unicode. This fixes issue 55.

- Encoded expression input on Python 3 is now correctly
decoded. Previously, the string representation output would be
included instead of an actually decoded string.

- Expression result conversion steps are now correctly included in
error handling such that the exception output points to the
expression location.

2.4.3

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

Features:

- When an encoding is provided, pass the 'ignore' flag to avoid
decoding issues with bad input.

Bugfixes:

- Fixed pypy compatibility issue (introduced in previous release).

Page 13 of 19

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.