diff --git a/Chameleon-2.10.tar.gz b/Chameleon-2.10.tar.gz new file mode 100644 index 0000000..73463c9 --- /dev/null +++ b/Chameleon-2.10.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:3a9ea188a0acfab469152834fe909ef8691f2fe65950cd6d3c8d09be31f8b44d +size 156547 diff --git a/Chameleon-2.9.2.tar.gz b/Chameleon-2.9.2.tar.gz deleted file mode 100644 index df50383..0000000 --- a/Chameleon-2.9.2.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:92ff7b6bef0655033005257200d05dfa35a124c5b0b8e0a1ddde339d84668be0 -size 151036 diff --git a/python-Chameleon.changes b/python-Chameleon.changes index 956bb74..9fcbc84 100644 --- a/python-Chameleon.changes +++ b/python-Chameleon.changes @@ -1,3 +1,35 @@ +------------------------------------------------------------------- +Sun Oct 21 16:22:03 UTC 2012 - suse@ammler.ch + +- update to 2.10 + - Deprecations: + - The fast_translate function has been deprecated. Instead, the default translation + function is now always a function that simply interpolates the mapping onto the message default or id. + - The motivation is that since version 2.9, the context argument is non-trivial: the econtext + mapping is passed. This breaks an expectation on the Zope platform that the context parameter is the HTTP + request. Previously, with Chameleon this parameter was simply not provided and so that did not cause issues as such. + - The ast24 module has been renamed to ast25. This should help clear up any confusion that + Chameleon 2.x might be support a Python interpreter less than version 2.5 (it does not). + - Features: + - The ProxyExpr expression class (and hence the load: expression type) is now a TALES-expression. + In practical terms, this means that the expression type (which computes a string result using the + standard "${...}" interpolation syntax and proxies the result through a function) now supports fallback using the pipe operator ("|"). This fixes issue #128. + - An attempt to interpolate using the empty string as the expression (i.e. ${}) now does nothing: the string ${} is simply output as is. + - Added support for adding, modifying, and removing attributes using a dictionary expression in tal:attributes (analogous to Genshi's py:attrs directive): + -
+ - In the example above, name is an identifier, while value and attrs are Python expressions. However, + attrs must evaluate to a Python dictionary object (more concisely, the value must implement the dictionary API-methods update() and items()). + - Optimizations: + - In order to cut down on the size of the compiled function objects, some conversion and quoting statements + have been put into functions. In one measurement, the reduction was 35%. The benchmark suite does not report of an increased render time (actually slightly decreased). + - Bugfixes: + - An exception is now raised if a trivial string is passed for metal:fill-slot. This fixes issue #89. + - An empty string is now never translated. Not really a bug, but it's been reported in as an issue (#92) because some translation frameworks handle this case incorrectly. + - The template module loader (file cache) now correctly encodes generated template source code as UTF-8. This fixes issue #125. + - Fixed issue where a closure might be reused unsafely in nested template rendering. + - Fixed markup class __repr__ method. This fixes issue #124. + - Added missing return statement to fix printing the non-abbreviated filename in case of an exception. [tomo] + ------------------------------------------------------------------- Thu Jun 7 10:14:49 UTC 2012 - suse@ammler.ch diff --git a/python-Chameleon.spec b/python-Chameleon.spec index 82e1362..0dbd9d4 100644 --- a/python-Chameleon.spec +++ b/python-Chameleon.spec @@ -16,7 +16,7 @@ # Name: python-Chameleon -Version: 2.9.2 +Version: 2.10 Release: 0 Url: http://www.pagetemplates.org/ Summary: Fast HTML/XML Template Compiler diff --git a/python3-Chameleon.spec b/python3-Chameleon.spec index a732d6b..dbdbc96 100644 --- a/python3-Chameleon.spec +++ b/python3-Chameleon.spec @@ -16,7 +16,7 @@ # Name: python3-Chameleon -Version: 2.9.2 +Version: 2.10 Release: 0 Url: http://www.pagetemplates.org/ Summary: Fast HTML/XML Template Compiler