Genshi

Latest version: v0.7.7

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

Scan your dependencies

Page 4 of 5

0.3.4

Not secure
(Nov 2 2006, from branches/stable/0.3.x)

* The encoding of HTML and XML files, as well as markup and text templates,
can now be specified. Also, the encoding specified in XML declarations is
now respected unless an expiclit encoding is requested.
* Expressions used as arguments for `py:with`, `py:def`, and `py:for`
directives can now contain non-ASCII strings.

0.3.3

Not secure
(Oct 16 2006, from branches/stable/0.3.x)

* Fixed bug introduced in 0.3.2 that broke the parsing of templates which
declare the same namespace more than once in a nested fashion.
* Fixed the parsing of HTML entity references inside attribute values, both
in the `XMLParser` and the `HTMLParser` classes.
* Some changes to usage of absolute vs. relative template paths to ensure that
the filenamed-keyed cache employed by the TemplateLoader doesn't mix up
templates with the same name, but from different subdirectories.

0.3.2

Not secure
(Oct 12 2006, from branches/stable/0.3.x)

* Exceptions from templates now contain the absolute path to the template file
when a search path is used. This enables tracebacks to display the line in
question.
* The template engine plugin now provides three different types: "genshi" and
"genshi-markup" map to markup templates, while "genshi-text" maps to text
templates.
* Fixed the namespace context used by XPath patterns in py:match templates.
The were erroneously using the namespace context of the elements being
matched, where they should rather use the context in which they were
defined.
* The contents of `<script>` and `<style>` elements are no longer escaped when
serializing to HTML but declaring the XHTML namespace in the template.
* Improved error message raised when using the `py:for` directive on an object
that is not iterable (ticket 60).
* Fixed the XPath function `starts-with()` which was always returning true
(ticket 61).

0.3.1

Not secure
(Sep 22 2006, from branches/stable/0.3.x)

* Includes and user-defined filters were not getting the correct context data
when used inside a match template (ticket 56).
* XPath patterns using the union operator (`|`) were returning only partial
results in some cases.

0.3

Not secure

0.3.0

(Sep 17 2006, from branches/stable/0.3.x)

* The project name was changed from "Markup" to "Genshi". See UPGRADE.txt
for upgrade instructions.
* Expression evaluation now differentiates between undefined variables and
variables that are defined but set to `None`. This also means that local
variables can override built-ins even if the local variable are set to
`None` (ticket 36).
* The plugin implementation now makes more functions available for use inside
templates: XML(), HTML(), defined(), and value-of(). These are mostly for
migration from Kid.
* The parsing of `py:with` directives has been improved: you can now assign
to multiple names, and semicolons inside string literals are treated as
expected.
* Generator expressions can now be used in template expressions (ticket 16).
* Added serialization to plain text (ticket 41).
* Calling functions from template expressions with *args and/or **kwargs
now works correctly (ticket 42).
* The `TemplateLoader` class and the `Template` instances that it manages are
now thread-safe, as they no longer keep any state related to the current
processing context.
* Stream filters and serializers can now be applied using the "pipe" (bitwise
or) operator "|".
* The execution of named template functions (`py:def`) no longer silently
swallows TypeError exceptions (ticket 44).
* The XML Parser now correctly handles unicode input (ticket 43).
* HTML entities can now be used in templates without having to declare an HTML
document type.
* Error reporting on undefined entities has been fixed.
* Fix traversal of substreams by XPath expressions. For example, the path
'*/*' no longer matches non-immediate child elements, and '*' no longer
matches the attributes of descendants.
* Fixes for `py:match` which would get confused when it should be applied
to multiple elements (ticket 49).
* Using namespace prefixes in XPath expressions is now supported.
* Expressions now correctly handle slices (ticket 51).
* A simple text-based template language is now included for generating
plain text output (ticket 47).

Page 4 of 5

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.