10040c7e9dAccepting request 1234569 from devel:languages:pythonAna Guerrero2025-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.Dirk Mueller2025-01-02 14:13:55 +00:00
0837382096Accepting request 1169357 from devel:languages:pythonAna Guerrero2024-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.Dirk Mueller2024-04-20 13:31:23 +00:00
be85abf419Accepting request 1158870 from devel:languages:pythonAna Guerrero2024-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.Steve Kowalik2024-03-18 06:53:12 +00:00
e0905b8899Accepting request 1142764 from devel:languages:pythonAna Guerrero2024-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 setDirk Mueller2024-01-30 12:03:39 +00:00
e46820f845Accepting request 1139516 from devel:languages:pythonAna Guerrero2024-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.Dirk Mueller2024-01-10 16:31:03 +00:00
5a84502a77Accepting request 1114697 from devel:languages:pythonAna Guerrero2023-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 expressionDirk Mueller2023-10-02 07:22:17 +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.Ondřej Súkup2020-07-08 14:05:04 +00:00
9df16d9123- Update to 3.6.1: * Fix limited search expression for illegal double hyphens in HTML comments to fix issue #289.
Tomáš Chvátal
2019-04-01 13:00:34 +00:00
9d8906a7b4- Fix macro expansion
Tomáš Chvátal
2019-03-07 11:10:41 +00:00
b8624d559b- Drop the doc subpackage, not really needed - Format with spec-cleaner and reduce some of the conditionals
Tomáš Chvátal
2019-03-05 12:13:35 +00:00
4f57f6a3d9Accepting request 142822 from devel:languages:python3
Todd R
2012-11-25 11:38:42 +00:00
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]
Marcel Gmür
2012-10-21 16:27:13 +00:00
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.
Marcel Gmür
2012-06-07 10:23:00 +00:00
aa2b4a011aAccepting request 122525 from home:HighwayStar:branches:devel:languages:python
Todd R
2012-05-28 08:50:56 +00:00
b7e69fe174- add Chameleon as BuildRequires to build the docs
Marcel Gmür
2012-04-19 10:39:26 +00:00
70c7248117- update to 2.8.3 - Feature: Log template source on debug-level before cooking. - Feature: The target_language argument, if given, is now available as a variable in templates.
Marcel Gmür
2012-04-16 10:42:29 +00:00
d34a600e26- update to 2.8.2 - Feature: Temporary caches used in debug mode are cleaned up eagerly, rather than waiting for process termination. - Fix: The index, start and end methods on the TAL repeat object are now callable. This fixes an incompatibility with ZPT. - Fix: The loader now correctly handles absolute paths on Windows.
Marcel Gmür
2012-03-31 09:01:07 +00:00
7da1934955- update to 2.8.1 - Feature: The exception formatter now lists errors in 'wrapping order'. This means that the innermost, and presumably most relevant exception is shown last. - Fix: The exception formatter now correctly recognizes nested errors and does not rewrap the dynamically generated exception class. - Fix: The exception formatter now correctly sets the __module__ attribute to that of the original exception class.
Marcel Gmür
2012-03-30 11:39:20 +00:00
914cd26632- Run but don't install testsuite - Try to clarify licensing situation - Build HTML documentation and ship it - Buildrequire python-distribute instead of setuptools
Sascha Peilicke
2012-03-08 13:13:31 +00:00
620bb22ae4Accepting request 108470 from home:openttdcoop
Sascha Peilicke
2012-03-08 10:49:45 +00:00