comparison ChangeLog @ 442:ff7c72b52fb2

Back out [510] and instead implement configurable error handling modes. The default is the old 0.3.x behaviour, but more strict error handling is available as an option.
author cmlenz
date Thu, 12 Apr 2007 22:40:49 +0000
parents 3d82c5bdbf46
children 90f5908cd10a
comparison
equal deleted inserted replaced
441:9d3f275953b5 442:ff7c72b52fb2
40 * The `Attrs` class no longer automatically wraps all attribute names in 40 * The `Attrs` class no longer automatically wraps all attribute names in
41 `QName` objects. This is now the responsibility of whoever is instantiating 41 `QName` objects. This is now the responsibility of whoever is instantiating
42 `Attrs` objects (for example, stream filters and generators). 42 `Attrs` objects (for example, stream filters and generators).
43 * Python code blocks are now supported using the `<?python ?>` processing 43 * Python code blocks are now supported using the `<?python ?>` processing
44 instruction (ticket #84). 44 instruction (ticket #84).
45 * Runtime error handling in template expressions has become more strict 45 * The way errors in template expressions are handled can now be configured. The
46 (ticket #88). Where you previously could access undefined variables or 46 option `LenientLookup` provides the same forgiving mode used in previous
47 members, you now get an exception. If a variable is not necessarily defined 47 Genshi versions, while `StrictLookup` raises exceptions when undefined
48 at the top level of the template data, the new built-in functions 48 variables or members are accessed. The lenient mode is still the default in
49 `defined(name)` and `value_of(name, default)` need to be used. 49 this version, but that may change in the future. (ticket #88)
50 * If a variable is not necessarily defined at the top level of the template
51 data, the new built-in functions `defined(key)` and `value_of(key, default)`
52 can be used so that the template also works in strict lookup mode. These
53 functions were previously only available when using Genshi via the template
54 engine plugin (for compatibility with Kid).
50 * `style` attributes are no longer allowed by the `HTMLSanitizer` by default. 55 * `style` attributes are no longer allowed by the `HTMLSanitizer` by default.
51 If it is explicitly added to the set of safe attributes, and unicode escapes 56 If it is explicitly added to the set of safe attributes, and unicode escapes
52 in the attribute value are handled correctly. 57 in the attribute value are handled correctly.
53 * Namespace declarations on conditional elements (for example using a `py:if` 58 * Namespace declarations on conditional elements (for example using a `py:if`
54 directive`) are no longer moved to the following element when the element 59 directive`) are no longer moved to the following element when the element
Copyright (C) 2012-2017 Edgewall Software