15
0
Commit Graph

57 Commits

Author SHA256 Message Date
decace46a7 Accepting request 1269070 from devel:languages:python
- Support both lowercased and unnormalized metadata directory names.

- Lowercase metadata directory name.

OBS-URL: https://build.opensuse.org/request/show/1269070
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-Chameleon?expand=0&rev=21
2025-04-14 10:59:30 +00:00
90ecb6d95a - Support both lowercased and unnormalized metadata directory names.
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Chameleon?expand=0&rev=56
2025-04-14 05:47:25 +00:00
f5b2e7d689 - Lowercase metadata directory name.
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Chameleon?expand=0&rev=55
2025-03-25 00:36:48 +00:00
10040c7e9d Accepting request 1234569 from devel:languages:python
- update to 4.6.0:
  * Improve startup time when no template is used.
  * Fix ast deprecation warnings up to Python 3.13.
  * Fix load_module deprecation warnings for Python >= 3.10.

OBS-URL: https://build.opensuse.org/request/show/1234569
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-Chameleon?expand=0&rev=20
2025-01-02 18:23:57 +00:00
869c33fd71 - update to 4.6.0:
* Improve startup time when no template is used.
  * Fix ast deprecation warnings up to Python 3.13.
  * Fix load_module deprecation warnings for Python >= 3.10.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Chameleon?expand=0&rev=53
2025-01-02 14:13:55 +00:00
0837382096 Accepting request 1169357 from devel:languages:python
- update to 4.5.4:
  * Fix an issue where $-sign interpolation escaping would not
    work correctly when more than two such symbols appeared next
    to each other.
  * Minor optimization when rendering translations with a static
    message id (don't need to test if it's non-empty).
  * Fix a bug where a macro could not be used correctly to render
    a translation name.

OBS-URL: https://build.opensuse.org/request/show/1169357
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-Chameleon?expand=0&rev=19
2024-04-21 18:27:04 +00:00
6c71b9d3aa - update to 4.5.4:
* Fix an issue where $-sign interpolation escaping would not
    work correctly when more than two such symbols appeared next
    to each other.
  * Minor optimization when rendering translations with a static
    message id (don't need to test if it's non-empty).
  * Fix a bug where a macro could not be used correctly to render
    a translation name.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Chameleon?expand=0&rev=51
2024-04-20 13:31:23 +00:00
be85abf419 Accepting request 1158870 from devel:languages:python
- Add missing {Build,}Requires on importlib-metadata.
- Drop unneeded Requires on setuptools.
- No more greedy globs in %files.

OBS-URL: https://build.opensuse.org/request/show/1158870
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-Chameleon?expand=0&rev=18
2024-03-18 15:46:06 +00:00
38e13d95c9 - Add missing {Build,}Requires on importlib-metadata.
- Drop unneeded Requires on setuptools.
- No more greedy globs in %files.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Chameleon?expand=0&rev=49
2024-03-18 06:53:12 +00:00
e0905b8899 Accepting request 1142764 from devel:languages:python
- update to 4.5.2:
  * Fix a regression where a static symbol would not get
    correctly imported.
  * Add Python 3.13 classifier.
  * Fix a regression where default_extension was no longer permitted
  * Chameleon now has type annotations!
  * Fix a regression where generated template code would
    suboptimal due to incorrect handling of internal variables.
  * Always cook templates in debug mode, even when using
    CHAMELEON_CACHE option to persist generated code on disk.
  * Parsing the AST back to Python code now uses the built-in
    ast.unparse function. This change is not directly surfaced
    but means that the unparsing code is now more correctly
    tracking changes to the interpreter.
  * Drop support for platforms where AST nodes aren't weakref-
    capable (e.g., older PyPy).
  * Fix a PyPy compatibility issue having to do with determining
    the set

OBS-URL: https://build.opensuse.org/request/show/1142764
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-Chameleon?expand=0&rev=17
2024-01-30 17:26:42 +00:00
504ed13ac8 - update to 4.5.2:
* Fix a regression where a static symbol would not get
    correctly imported.
  * Add Python 3.13 classifier.
  * Fix a regression where default_extension was no longer permitted
  * Chameleon now has type annotations!
  * Fix a regression where generated template code would
    suboptimal due to incorrect handling of internal variables.
  * Always cook templates in debug mode, even when using
    CHAMELEON_CACHE option to persist generated code on disk.
  * Parsing the AST back to Python code now uses the built-in
    ast.unparse function. This change is not directly surfaced
    but means that the unparsing code is now more correctly
    tracking changes to the interpreter.
  * Drop support for platforms where AST nodes aren't weakref-
    capable (e.g., older PyPy).
  * Fix a PyPy compatibility issue having to do with determining
    the set

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Chameleon?expand=0&rev=47
2024-01-30 12:03:39 +00:00
e46820f845 Accepting request 1139516 from devel:languages:python
Automatic submission by obs-autosubmit

OBS-URL: https://build.opensuse.org/request/show/1139516
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-Chameleon?expand=0&rev=16
2024-01-17 21:19:10 +00:00
5ca6c74935 - update to 4.4.3:
* Remove zope.interface.
  * Fix an issue where auto_reload is enabled and a file is
    loaded from a package that wasn't zip-compressed.
  * Drop support for Python 3.7.
  * Fix names of dependencies for importlib_resources and
    importlib_metadata.
  * Local variable scope is now iterable,
    completing dict interface.
  * Minor optimizations to rendering logic.
  * Implicit translation now provides the translation context,
    domain, and target language to the translation function (if
    applicable). Previously, the target language was provided,
    but this did not respect a change via i18n:target.
  * Replace pkg_resources with newer and faster
    importlib.resources and importlib.metadata. Just importing
    pkg_resources becomes slower and slower the more packages are
    installed.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Chameleon?expand=0&rev=45
2024-01-10 16:31:03 +00:00
5a84502a77 Accepting request 1114697 from devel:languages:python
- update to 4.2.0:
  * An XML document provided as a string (i.e. decoded) now
    correctly has its content encoding parsed.
  * Boolean attributes are now automatically configured for
    templates in non-XML mode, presuming that we're being used
    to generate HTML.
  * This means that the same loading mechanism can be used for
    both XML-and HTML-based templates.
  * Boolean attributes (those configured using the optional
    `boolean_attributes` parameter) now work with $-expression
    interpolation.
  * Unlike content and regular attributes, a special check for a
    falsy value is now done for boolean attributes, such that
    boolean logic can be used for interpolation expressions
    (only a truthy value will include the attribute).
    This reverts a change in behavior introduced in 3.8.0.
  * Fix format spec applying for f-strings.
  * Drop support for Python 2.7, 3.5, 3.6.
  * Add support for set- and dict comprehensions
  * Remove the following functions resp. modules:
    ``.utils.text_()``
    ``.utils.unescape()``
    ``.compat``

  *  A RepeatDict no longer inherits from dict since it does not actually provide
  *  Added feature gate enable_comment_interpolation which controls whether
    Add option restricted_namespace which controls whether to
    restrict namespaces to those defined and used by the page
    Fixed attribute HTML entity escaping issue where an entity such
    Simplify exception tracking, reducing bytecode size

OBS-URL: https://build.opensuse.org/request/show/1114697
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-Chameleon?expand=0&rev=15
2023-10-02 18:07:04 +00:00
dbba8aaccf - update to 4.2.0:
* An XML document provided as a string (i.e. decoded) now
    correctly has its content encoding parsed.
  * Boolean attributes are now automatically configured for
    templates in non-XML mode, presuming that we're being used
    to generate HTML.
  * This means that the same loading mechanism can be used for
    both XML-and HTML-based templates.
  * Boolean attributes (those configured using the optional
    `boolean_attributes` parameter) now work with $-expression
    interpolation.
  * Unlike content and regular attributes, a special check for a
    falsy value is now done for boolean attributes, such that
    boolean logic can be used for interpolation expressions
    (only a truthy value will include the attribute).
    This reverts a change in behavior introduced in 3.8.0.
  * Fix format spec applying for f-strings.
  * Drop support for Python 2.7, 3.5, 3.6.
  * Add support for set- and dict comprehensions
  * Remove the following functions resp. modules:
    ``.utils.text_()``
    ``.utils.unescape()``
    ``.compat``
  *  A RepeatDict no longer inherits from dict since it does not actually provide
  *  Added feature gate enable_comment_interpolation which controls whether
    Add option restricted_namespace which controls whether to
    restrict namespaces to those defined and used by the page
    Fixed attribute HTML entity escaping issue where an entity such
    Simplify exception tracking, reducing bytecode size
    Avoid checking if a static string is None during expression

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Chameleon?expand=0&rev=43
2023-10-02 07:22:17 +00:00
27689420e7 Accepting request 1055881 from devel:languages:python
- update to 3.10.2:
  * Fix handling of eager compilation with subclassing (e.g. Pyramid
    integration).

OBS-URL: https://build.opensuse.org/request/show/1055881
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-Chameleon?expand=0&rev=14
2023-01-04 16:53:52 +00:00
a8bdcf33e0 - update to 3.10.2:
* Fix handling of eager compilation with subclassing (e.g. Pyramid
    integration).

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Chameleon?expand=0&rev=41
2023-01-04 15:01:45 +00:00
da14864744 Accepting request 992332 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/992332
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-Chameleon?expand=0&rev=13
2022-08-02 20:09:38 +00:00
f87f357ec5 Accepting request 992238 from home:ohollmann:branches:devel:languages:python
- version update to 3.10.1
  * Fix __str__ method of chameleon.exc.TemplateError (#356)
  * Make scope class dict-like (#305)
  * Work in FIPS enabled environments (#345)
  * Fix tab handling issue (#350)

OBS-URL: https://build.opensuse.org/request/show/992238
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Chameleon?expand=0&rev=39
2022-08-02 13:28:25 +00:00
3b24b16c47 Accepting request 894587 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/894587
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-Chameleon?expand=0&rev=12
2021-05-20 17:25:29 +00:00
f75f818db3 Accepting request 894584 from home:pgajdos:python
- version update to 3.9.1
  * Avoid various traceback reference cycles.
  * Removed compatibility code for unsupported Python versions
  * Dropped support for obsolete Python 3.4
  * Fixed namespace handling when redefining a variable in the same tal:define (#237)
  * Fixed failure computing a template's digest if template.filename is None (#254)
- %check: use %pytest macro

OBS-URL: https://build.opensuse.org/request/show/894584
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Chameleon?expand=0&rev=37
2021-05-20 09:52:06 +00:00
c47131e213 Accepting request 819491 from devel:languages:python
- Update to 3.8.1
 * Added code optimization to reduce sequential appends of static text.
 * The default symbol in dynamic attributes is now symbolic.
 * The built-in attrs dictionary of static element attributes now correctly
    works with tal:define, etc.
 * Fix slice code generation compatibility issue on Python 3.9.
 * Expose default marker as importable symbol chameleon.tales.DEFAULT_MARKER.
 * Removed legacy flag literal_false. To get a similar behavior, use boolean_attributes.

OBS-URL: https://build.opensuse.org/request/show/819491
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-Chameleon?expand=0&rev=11
2020-07-08 17:20:00 +00:00
188dccbcf5 - Update to 3.8.1
* Added code optimization to reduce sequential appends of static text.
 * The default symbol in dynamic attributes is now symbolic.
 * The built-in attrs dictionary of static element attributes now correctly
    works with tal:define, etc.
 * Fix slice code generation compatibility issue on Python 3.9.
 * Expose default marker as importable symbol chameleon.tales.DEFAULT_MARKER.
 * Removed legacy flag literal_false. To get a similar behavior, use boolean_attributes.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Chameleon?expand=0&rev=35
2020-07-08 14:05:04 +00:00
3fdc835b29 Accepting request 812491 from devel:languages:python
- Update to 3.7.2
 * Fix compatiblity issue with Python 3.9.
 * Allow setting a custom value representation function

OBS-URL: https://build.opensuse.org/request/show/812491
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-Chameleon?expand=0&rev=10
2020-06-08 22:05:39 +00:00
29cf40b5b1 - Update to 3.7.2
* Fix compatiblity issue with Python 3.9.
 * Allow setting a custom value representation function

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Chameleon?expand=0&rev=33
2020-06-08 09:03:59 +00:00
8fec0dae31 Accepting request 794803 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/794803
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-Chameleon?expand=0&rev=9
2020-04-17 22:30:48 +00:00
Tomáš Chvátal
8d2d9e2f2e Accepting request 794801 from home:mcalabkova:branches:devel:languages:python
- Update to 3.7.0
  *  Fixed garbage collection issue with variable scope objects (issue #301).
  *  Fixed issue where setting a global variable would not be available locally.
  *  A RepeatDict no longer inherits from dict since it does not actually provide 
     that interface in a meaningful way.
  *  Added feature gate enable_comment_interpolation which controls whether 
     expression interpolation is enabled inside HTML comments (default is enabled).
  *  Added support for Python 3.6+ f-strings (issue #294).

OBS-URL: https://build.opensuse.org/request/show/794801
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Chameleon?expand=0&rev=31
2020-04-17 08:11:45 +00:00
d6fd10ddd1 Accepting request 717492 from devel:languages:python
- Update to 3.6.2:
  * Fix SyntaxWarnings in Python 3.8 resulting from comparing literals with 'is'

OBS-URL: https://build.opensuse.org/request/show/717492
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-Chameleon?expand=0&rev=8
2019-07-22 15:18:25 +00:00
Tomáš Chvátal
e91e1ea7e4 - Update to 3.6.2:
* Fix SyntaxWarnings in Python 3.8 resulting from comparing literals with 'is'

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Chameleon?expand=0&rev=29
2019-07-22 09:11:02 +00:00
46a8e1fd44 Accepting request 690341 from devel:languages:python
- Update to 3.6.1:
  * Fix limited search expression for illegal double hyphens in HTML comments to fix issue #289.

OBS-URL: https://build.opensuse.org/request/show/690341
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-Chameleon?expand=0&rev=7
2019-04-02 07:22:30 +00:00
Tomáš Chvátal
9df16d9123 - Update to 3.6.1:
* Fix limited search expression for illegal double hyphens in HTML comments to fix issue #289.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Chameleon?expand=0&rev=27
2019-04-01 13:00:34 +00:00
7382ca4468 Accepting request 682406 from devel:languages:python
- Fix macro expansion

- Update to version 3.6:
  * Exclude RuntimeError (or RecursionError when available) from exception wrapping.
  * Fix double dollar '$$' escaping such that a double dollar is always resolved, either as an interpolation expression, or as an escape where it is substituted by a single dollar symbol. This is now consistent with Zope's handling of this character.
  * Drop support for Python 3.3.
  * Add support for Python 3.8.
  * Add support for TAL attributes in an XML declaration tag. This fixes issue #269.
  * Add support for custom exception handling for the tal:on-error statement. There is now an option on_error_handler available as a template configuration (issue #266).
  * Fix issue where double '$$' escaping would affect non-interpolation expressions such as the bare '$$' (issue #265).
  * Fix an issue where backslash dollar escaping would leave the backslash character still in place.
  * Fix regression with translations in case of multiple nodes.
  * Reset error token when rendering internal macro calls.
  * Fix edge case in exception handler causing recursion. [MatthewWilkes]
  * Add the automatic variable macroname that's bound to the name of the executing macro. Fixes https://github.com/malthe/chameleon/issues/238
  * A tokenizer can now be configured on the template class. This is useful in the case where the template file input is modified before parsing (for example, where some tags are stripped away) such that token positions need to be offset accordingly for error locations to be rendered correctly.
  * Expression errors now display source marker (previously only filename, line and column was shown).
  * No longer require Python source files to import modules. [mrh1997]

- Drop the doc subpackage, not really needed
- Format with spec-cleaner and reduce some of the conditionals
- Update url

OBS-URL: https://build.opensuse.org/request/show/682406
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-Chameleon?expand=0&rev=6
2019-03-22 14:01:27 +00:00
Tomáš Chvátal
9d8906a7b4 - Fix macro expansion
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Chameleon?expand=0&rev=25
2019-03-07 11:10:41 +00:00
Tomáš Chvátal
b8624d559b - Drop the doc subpackage, not really needed
- Format with spec-cleaner and reduce some of the conditionals

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Chameleon?expand=0&rev=24
2019-03-05 12:13:35 +00:00
0da478f85f Accepting request 659257 from devel:languages:python
- Remove superfluous devel dependency for noarch package

OBS-URL: https://build.opensuse.org/request/show/659257
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-Chameleon?expand=0&rev=5
2018-12-19 12:51:10 +00:00
a662f0de8b Remove superfluous devel dependency for noarch package
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Chameleon?expand=0&rev=22
2018-12-04 13:33:30 +00:00
453adcadfb Accepting request 526902 from devel:languages:python
- Packaging : 
  + Move to singlespec
  + Spec-cleanup
  + Split documentation to speedup rebuild
 
- Update to version 3.1 (forwarded request 526690 from bruno_friedmann)

OBS-URL: https://build.opensuse.org/request/show/526902
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-Chameleon?expand=0&rev=4
2017-09-20 15:07:35 +00:00
b020987ad3 Accepting request 526690 from home:bruno_friedmann:branches:devel:languages:python
- Packaging : 
  + Move to singlespec
  + Spec-cleanup
  + Split documentation to speedup rebuild
 
- Update to version 3.1

OBS-URL: https://build.opensuse.org/request/show/526690
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Chameleon?expand=0&rev=20
2017-09-17 19:53:21 +00:00
a7807a93c0 Accepting request 284549 from devel:languages:python
1

OBS-URL: https://build.opensuse.org/request/show/284549
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-Chameleon?expand=0&rev=3
2015-02-06 21:38:30 +00:00
0b4ae7e1c3 Accepting request 284529 from home:frispete:python
- Update to version 2.22
  + Changes from 2.22 (2015-02-06)
    Fix brown bag release.
  + Changes from 2.21 (2015-02-06)
    Added RenderError exception which indicates that an error occurred during
    the evaluation of an expression.  Clean up TemplateError exception
    implementation.
  + Changes from 2.20 (2015-01-12)
    Pass search_path to template class when loaded using TemplateLoader (or one
    of the derived classes). [faassen]
  + Changes from 2.19 (2015-01-06)
    Fix logging deprecation.  Fix environment-based configuration logging
    error.
  + Changes from 2.18 (2014-11-03)
    Fix minor compilation error.
  + Changes from 2.17 (2014-11-03)
    Add support for i18n:context. [wiggy] Add missing ‘parity’ repeat property.
    [voxspox] Don’t modify environment when getting variables from it. [fschulze]
  + Changes from 2.16 (2014-05-06)
    If a repeat expression evaluates to None then it is now equivalent to an
    empty set.
    This changes a behavior introduced in 2.14.
    This fixes issue #172.
    Remove fossil test dependency on deprecated distribute.
    Add explicit support / testing for Python 3.3 / 3.4.
    Drop explicit support for Python 2.5 (out of maintenance, and no longer
    supported by tox or Travis-CI).
  + Changes from 2.15 (2014-03-11)
    Add Support for Python 3.4’s NameConstant. [brakhane]

OBS-URL: https://build.opensuse.org/request/show/284529
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Chameleon?expand=0&rev=18
2015-02-06 18:29:31 +00:00
Stephan Kulow
ed77bf14dc Accepting request 210353 from devel:languages:python
Chameleon is an HTML/XML template engine for Python. It uses the *page templates* language.

New dependency of python-Pyramid

OBS-URL: https://build.opensuse.org/request/show/210353
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-Chameleon?expand=0&rev=1
2014-01-01 19:42:39 +00:00
Denisart Benjamin
d96c463902 Accepting request 210352 from home:posophe:branches:devel:languages:python
update

OBS-URL: https://build.opensuse.org/request/show/210352
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Chameleon?expand=0&rev=16
2013-12-10 11:53:56 +00:00
Sascha Peilicke
0504d316bf - Require python-setuptools instead of distribute (upstreams merged)
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Chameleon?expand=0&rev=15
2013-10-24 11:00:01 +00:00
Sascha Peilicke
bd220114be Accepting request 185210 from home:frispete:python
- add python-ordereddict and python-unittest2 to 11.1 deps

OBS-URL: https://build.opensuse.org/request/show/185210
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Chameleon?expand=0&rev=14
2013-07-31 15:27:46 +00:00
Sascha Peilicke
5b1969ceab Python3 moved to devel:languages:python3
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Chameleon?expand=0&rev=13
2013-06-17 12:50:20 +00:00
Marcel Gmür
8b4e88075f OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Chameleon?expand=0&rev=12 2013-04-11 07:39:46 +00:00
Marcel Gmür
79e654898f OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Chameleon?expand=0&rev=11 2013-04-11 07:39:23 +00:00
Todd R
4f57f6a3d9 Accepting request 142822 from devel:languages:python3
- Update to 2.11
- Remove openSUSE 11.4 spec file workarounds for python 3
- Fix building documentation (forwarded request 142821 from TheBlackCat)

OBS-URL: https://build.opensuse.org/request/show/142822
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Chameleon?expand=0&rev=10
2012-11-25 11:38:42 +00:00
Marcel Gmür
c5883c3f3d - 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):
    - <div tal:attributes="name value; attrs" />
    - 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]

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Chameleon?expand=0&rev=9
2012-10-21 16:27:13 +00:00
Marcel Gmür
8e4618e5db - update to 2.9.2
- Fixed a PyPy incompatibility.
  - Fixed issue #109 which caused testing failures on some platforms.
  - changes in 2.9.1
    - Fixed issue #103. The tal:on-error statement now always adds an explicit 
      end-tag to the element, even with a substitution content of nothing.
    - Fixed issue #113. The tal:on-error statement now works correctly also for 
      dynamic attributes. That is, the fallback tag now includes only static attributes.
    - Fixed name error which prevented the benchmark from running correctly.
    - Compatibility: Fixed deprecation warning on Python 3 for zope interface implements declaration. This fixes issue #116.
  - changes in 2.9.0
    - Feature: The translation function now gets the econtext argument as the 
      value for context. Note that historically, this was usually an HTTP request 
      which might provide language negotiation data through a dictionary interface. [alvinyue]
    - Fixed import alias issue which would lead to a syntax error in generated Python code. Fixes issue #114.
  - changes in 2.8.5
    - Fixed minor installation issues on Python 2.5 and 3. [ppaez]
    - Ensure output is unicode even when trivial (an empty string).
  - changes in 2.8.4
    - Feature: In exception output, long filenames are now truncated to 60 characters 
      of output, preventing line wrap which makes it difficult to scan the exception output.
    - Bugfix: Include filename and location in exception output for exceptions raised during compilation.
    - Bugfix: If a trivial translation substitution variable is given 
      (i.e. an empty string), simply ignore it. This fixes issue #106.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Chameleon?expand=0&rev=8
2012-06-07 10:23:00 +00:00