All Versions
92
Latest Version
Avg Release Cycle
101 days
Latest Release
928 days ago

Changelog History
Page 9

  • v2.0-rc7 Changes

    March 29, 2011

    ๐Ÿ›  Bugfixes:

    • ๐Ÿ›  Fixed issue with Python 2.5 compatibility AST. This affected at least PyPy 1.4.

    ๐Ÿ”‹ Features:

    • 0๏ธโƒฃ The auto_reload setting now defaults to the class value; the base template class gives a default value of chameleon.config.AUTO_RELOAD. This change allows a subclass to provide a custom default value (such as an application-specific debug mode setting).
  • v2.0-rc6 Changes

    March 19, 2011

    ๐Ÿ”‹ Features:

    • โž• Added support for target_language keyword argument to render method. If provided, the argument will be curried onto the translation function.

    ๐Ÿ›  Bugfixes:

    • The HTML entities 'lt', 'gt' and 'quot' appearing inside content subtition expressions are now translated into their native character values. This fixes an issue where you could not dynamically create elements using the structure (which is possible in ZPT). The need to create such structure stems from the lack of an expression interpolation operator in ZPT.

    • ๐Ÿ›  Fixed duplicate file pointer issue with test suite (affected Windows platforms only). This fixes issue #9. [oliora]

    • ๐Ÿ‘‰ Use already open file using os.fdopen when trying to write out the module source. This fixes LP #731803.

  • v2.0-rc5 Changes

    March 07, 2011

    ๐Ÿ›  Bugfixes:

    • ๐Ÿ›  Fixed a number of issues concerning the escaping of attribute values:

    1) Static attribute values are now included as they appear in the source.

     This means that invalid attribute values such as ``"true &&
     false"`` are now left alone. It's not the job of the template
     engine to correct such markup, at least not in the default mode
     of operation.
    

    2) The string expression compiler no longer unescapes values. Instead, this is left to each expression compiler. Currently only the Python expression compiler unescapes its input.

    3) The dynamic escape code sequence now correctly only replaces ampersands that are part of an HTML escape format.

    Imports:

    • The page template classes and the loader class can now be imported directly from the chameleon module.

    ๐Ÿ”‹ Features:

    • If a custom template loader is not provided, relative paths are now resolved using os.abspath (i.e. to the current working directory).

    • Absolute paths are normalized using os.path.normpath and os.path.expanduser. This ensures that all paths are kept in their "canonical" form.

  • v2.0-rc4 Changes

    March 03, 2011

    ๐Ÿ›  Bugfixes:

    • ๐Ÿ›  Fixed an issue where the output of an end-to-end string expression would raise an exception if the expression evaluated to None (it should simply output nothing).

    • ๐Ÿ”ง The convert function (which is configurable on the template class level) now defaults to the translate function (at run-time).

    This fixes an issue where message objects were not translated (and thus converted to a string) using the a provided translate function.

    • ๐Ÿ›  Fixed string interpolation issue where an expression immediately succeeded by a right curly bracket would not parse.

    This fixes issue #5.

    • ๐Ÿ›  Fixed error where tal:condition would be evaluated after tal:repeat.

    ๐Ÿ”‹ Features:

    • Python expression is now a TALES expression. That means that the pipe operator can be used to chain two or more expressions in a try-except sequence.

    This behavior was ported from the 1.x series. Note that while it's still possible to use the pipe character ("|") in an expression, it must now be escaped.

    • The template cache can now be shared by multiple processes.
  • v2.0-rc3 Changes

    March 02, 2011

    ๐Ÿ›  Bugfixes:

    • ๐Ÿ›  Fixed atexit handler.

    This fixes issue #3.

    • If a cache directory is specified, it will now be used even when not in debug mode.

    • ๐Ÿ‘ Allow "comment" attribute in the TAL namespace.

    This fixes an issue in the sense that the reference engine allows any attribute within the TAL namespace. However, only "comment" is in common use.

    • The template constructor now accepts a flag debug which puts the template instance into debug-mode regardless of the global setting.

    This fixes issue #1.

    ๐Ÿ”‹ Features:

    • โž• Added exception handler for exceptions raised while evaluating an expression.

    This handler raises (or attempts to) a new exception of the type RenderError, with an additional base class of the original exception class. The string value of the exception is a formatted error message which includes the expression that caused the exception.

    If we are unable to create the exception class, the original exception is re-raised.

  • v2.0-rc2 Changes

    February 28, 2011
    • ๐Ÿ›  Fixed upload issue.
  • v2.0-rc14 Changes

    July 13, 2011

    ๐Ÿ›  Bugfixes:

    • ๐Ÿ“œ The tab character (\t) is now parsed correctly when used inside tags.

    ๐Ÿ”‹ Features:

    • The RepeatDict class now works as a proxy behind a seperate dictionary instance.

    • โž• Added template constructor option keep_body which is a flag (also available as a class attribute) that controls whether to save the template body input in the body attribute.

    This is disabled by default, unless debug-mode is enabled.

    • The page template loader class now accepts an optional formats argument which can be used to select an alternative template class.
  • v2.0-rc13 Changes

    July 07, 2011

    ๐Ÿ›  Bugfixes:

    • The backslash character (followed by optional whitespace and a line break) was not correctly interpreted as a continuation for Python expressions.

    ๐Ÿ”‹ Features:

    • The Python expression implementation is now more flexible for external subclassing via a new parse method.
  • v2.0-rc12 Changes

    July 04, 2011

    ๐Ÿ›  Bugfixes:

    • ๐ŸŽ‰ Initial keyword arguments passed to a template now no longer "leak" into the template variable space after a macro call.

    • An unexpected end tag is now an unrecoverable error.

    ๐Ÿ”‹ Features:

    • ๐Ÿ‘Œ Improve exception output.
  • v2.0-rc11 Changes

    May 26, 2011

    ๐Ÿ›  Bugfixes:

    • ๐Ÿ›  Fixed issue where variable names that begin with an underscore were seemingly allowed, but their use resulted in a compiler error.

    ๐Ÿ”‹ Features:

    • ๐Ÿ›  Template variable names are now allowed to be prefixed with a single underscore, but not two or more (reserved for internal use).

    Examples of valid names::

    item
    ITEM
    _item
    camelCase
    underscore_delimited
    help
    
    • โž• Added support for Genshi's comment "drop" syntax::

      <!--! This comment will be dropped -->

    Note the additional exclamation (!) character.

    This fixes addresses issue #10.