Welcome, guest | Sign In | My Account | Store | Cart

Notice! PyPM is being replaced with the ActiveState Platform, which enhances PyPM’s build and deploy capabilities. Create your free Platform account to download ActivePython or customize Python with the packages you require and get automatic updates.

Download
ActivePython
INSTALL>
pypm install chameleon.core

How to install chameleon.core

  1. Download and install ActivePython
  2. Open Command Prompt
  3. Type pypm install chameleon.core
 Python 2.7Python 3.2Python 3.3
Windows (32-bit)
1.0.4 Available View build log
Windows (64-bit)
1.0.4 Available View build log
Mac OS X (10.5+)
1.0.4 Available View build log
Linux (32-bit)
1.0.4 Available View build log
Linux (64-bit)
1.0.4 Available View build log
 
Links
License
BSD
Lastest release
version 1.0.4 on Jan 5th, 2011

Overview

Chameleon is a generic byte-code compiler for attribute template languages; it supports macros, includes, interpolation and internationalization.

The chameleon.core package implements a language parser API, the byte-code compiler itself and abstract template classes. It should only be used directly when implementing a language dialect.

Development

If you want to use the code directly from trunk (recommended only for development and testing usage), provide chameleon.core==dev as your dependency.

The code is maintained in a subversion repository:

System Message: WARNING/2 (<string>, line 21)

Literal block expected; none found.

svn://svn.repoze.org/svn/chameleon.core

Want to contribute? Join #repoze on Freenode IRC.

Changelog

1.0.4 (released 04/11/2009)

  • Pull in Chameleon egg as dependency; the package has been

System Message: WARNING/2 (<string>, line 32)

Bullet list ends without a blank line; unexpected unindent.

merged.

1.0.3 (released 27/10/2009)

  • The repeat dictionary now allows attribute access.

1.0.2 (released 08/10/2009)

  • Made translation-method overridable (this allows subclasses to

System Message: WARNING/2 (<string>, line 43)

Bullet list ends without a blank line; unexpected unindent.

provide their own method which may be prebound to some translation context).

1.0.1 (released 10/09/2009)

Bugfix:

  • When detecting HTML content-type and encoding, don't substitute out

System Message: WARNING/2 (<string>, line 52)

Bullet list ends without a blank line; unexpected unindent.

the meta-tag. [millie]

1.0.0 (released 6/07/2009)

  • Disable file-cache by default.
  • The read method is now able to recover from a character decoding

System Message: WARNING/2 (<string>, line 60)

Bullet list ends without a blank line; unexpected unindent.

error on initialization.

  • Fixed file cache version check.
  • Added support for repeat-variables 'letter', 'Letter', 'roman' and

System Message: WARNING/2 (<string>, line 65)

Bullet list ends without a blank line; unexpected unindent.

'Roman'. [wiggy, malthe]

  • Improve performance of element repetition.
  • Use remote scope if applicable. This fixes an issue where macros

System Message: WARNING/2 (<string>, line 70)

Bullet list ends without a blank line; unexpected unindent.

would not carry over from an XInclude. Tsutsumi Naoya contributed to this bugfix.

1.0b36 (released 13/06/2009)

  • Fixed issue where global variable assignments would not get carried

System Message: WARNING/2 (<string>, line 77)

Bullet list ends without a blank line; unexpected unindent.

through to macros.

1.0b35 (released 05/06/2009)

  • Fixed version number concatenation such that it includes the base

System Message: WARNING/2 (<string>, line 83)

Bullet list ends without a blank line; unexpected unindent.

template class.

1.0b34 (released 29/05/2009)

  • Fixed issue with file cache where template byte-code would not get

System Message: WARNING/2 (<string>, line 89)

Bullet list ends without a blank line; unexpected unindent.

persisted on the file system.

  • Fixed issue with file cache (it would get reset upon first use,

System Message: WARNING/2 (<string>, line 92)

Bullet list ends without a blank line; unexpected unindent.

defeating the purpose of it entirely).

  • Fixed exception-handler in file cache.
  • Local variable declarations (local or global) would be added to the

System Message: WARNING/2 (<string>, line 97)

Bullet list ends without a blank line; unexpected unindent.

dynamic variable scope (econtext) when a macro was used. This issue has been solved by making a copy of the scope when using macros; if globals are defined by the called macro, they will still be applied to the original scope.

1.0b33 (released 20/05/2009)

Changes:

  • Template arguments are now always passed in through the dynamic

System Message: WARNING/2 (<string>, line 108)

Bullet list ends without a blank line; unexpected unindent.

variable scope (econtext). This change means that the compilation signature now only depends on variables that are known upon instantiation.

  • Output is now always unicode, regardless of the encoding. This means

System Message: WARNING/2 (<string>, line 113)

Bullet list ends without a blank line; unexpected unindent.

that input will be converted to unicode as required, while the application must itself take care of the final conversion.

  • Filled macro slots are now passed explicitly into the slots

System Message: WARNING/2 (<string>, line 117)

Bullet list ends without a blank line; unexpected unindent.

parameter, providing a formal API for rendering a macro. This mechanism was not open previously, relying on low-level machinery to function. As a technical aside, this change means that the provided slots are no longer part of the compilation signature, which could potentially reduce warm-up time.

Improvements:

  • Added "strict" mode which currently acts as a flag to require filled

System Message: WARNING/2 (<string>, line 126)

Bullet list ends without a blank line; unexpected unindent.

macro slots to be defined in the macro that's being used.

  • Added test case for cancelation of attributes via a false value.

System Message: WARNING/2 (<string>, line 129)

Bullet list ends without a blank line; unexpected unindent.

[hannosch]

  • Optimized "Assign" clause when used with single join

System Message: WARNING/2 (<string>, line 132)

Bullet list ends without a blank line; unexpected unindent.

statements. [hannosch]

  • The required number of function calls needed for a rendering has

System Message: WARNING/2 (<string>, line 135)

Bullet list ends without a blank line; unexpected unindent.

been reduced.

  • A default encoding can be defined on the template class; only if an

System Message: WARNING/2 (<string>, line 138)

Bullet list ends without a blank line; unexpected unindent.

explicit encoding is provided when instantiating a template will it be overriden.

  • The file cache now relies on the standard module import routines to

System Message: WARNING/2 (<string>, line 142)

Bullet list ends without a blank line; unexpected unindent.

generate byte-code. When the file cache is enabled, a Python source-file is added next to the template file (with the '.py' filename extension).

Bugfixes:

  • Fixed issue where a repeat through blocks that should be omitted

System Message: WARNING/2 (<string>, line 149)

Bullet list ends without a blank line; unexpected unindent.

would generate unwanted whitespace. [malthe]

  • Fixed issue where you could not use the variable name type since

System Message: WARNING/2 (<string>, line 152)

Bullet list ends without a blank line; unexpected unindent.

it would collide with the builtin method, which was used internally.

  • Fixed incorrect variable name when reporting mismatched Python

System Message: WARNING/2 (<string>, line 156)

Bullet list ends without a blank line; unexpected unindent.

versions in the cache pickles. [davisagli]

  • Fixed minor issues with the default symbol; it now defaults to

System Message: WARNING/2 (<string>, line 159)

Bullet list ends without a blank line; unexpected unindent.

None, if no default is available.

  • Fixed an UnboundLocalError that occurred when attempting to load a

System Message: WARNING/2 (<string>, line 162)

Bullet list ends without a blank line; unexpected unindent.

truncated cache file. [shane]

  • Buildout configuration no longer depends on lxml. [shane]

1.0b32 (released 24/04/2009)

  • Dropped dependency on lxml. [malthe]

1.0b31 (released 22/04/2009)

  • Correctly implement METAL 1.1 specification with regards to

System Message: WARNING/2 (<string>, line 175)

Bullet list ends without a blank line; unexpected unindent.

use-macro and extend-macro, the difference being whether slots are carried forward by default. To this effect, a key-error is now being raised if a slot is attempted to be carried forward without explicit redefinition. LP #364233. [malthe]

  • Added validate-method to the parser class; it will be called for

System Message: WARNING/2 (<string>, line 181)

Bullet list ends without a blank line; unexpected unindent.

each parsed element, providing an option to raise language-level exceptions during parsing. [malthe]

  • Add support for metal:extend-macro, even if it's basically an

System Message: WARNING/2 (<string>, line 185)

Bullet list ends without a blank line; unexpected unindent.

alias for use-macro for now. [sidnei]

  • Parse internal entities defined in <!DOCTYPE> and pass them around

System Message: WARNING/2 (<string>, line 188)

Bullet list ends without a blank line; unexpected unindent.

to output, working around a bug in lxml. [sidnei]

1.0b30 (released 17/04/2009)

  • Added omit_default_prefix argument to template class; by default

System Message: WARNING/2 (<string>, line 194)

Bullet list ends without a blank line; unexpected unindent.

this is enabled, such that attributes belonging to the same namespace as the tag are printed without prefix. Certain legacy applications require a prefix on all attributes however. [malthe]

1.0b29 (released 17/04/2009)

  • Fixed issue where a limit was put on the total length of XML

System Message: WARNING/2 (<string>, line 202)

Bullet list ends without a blank line; unexpected unindent.

namespace declarations by lxml. [malthe]

  • Exclude "transient symbols", defined as those who evaluate the

System Message: WARNING/2 (<string>, line 205)

Bullet list ends without a blank line; unexpected unindent.

chameleon.core.config.TRANSIENT_SYMBOL. [malthe]

1.0b28 (released 08/04/2009)

  • Initialize macros-object immediately after parsing for

System Message: WARNING/2 (<string>, line 211)

Bullet list ends without a blank line; unexpected unindent.

efficiency. [malthe]

  • Attempt at sniffing the content_type and encoding from the source

System Message: WARNING/2 (<string>, line 214)

Bullet list ends without a blank line; unexpected unindent.

file, like zope.pagetemplate.pagetemplatefile does. [sidnei]

1.0b27 (released 06/04/2009)

  • Fixed issue where nested variable definitions would not correctly

System Message: WARNING/2 (<string>, line 220)

Bullet list ends without a blank line; unexpected unindent.

get restored, when doubly (or more) nested. [malthe]

  • Use 'xmlcharrefreplace' sub-encoding when encoding output in

System Message: WARNING/2 (<string>, line 223)

Bullet list ends without a blank line; unexpected unindent.

utils.attribute() [sidnei]

1.0b26 (released 01/04/2009)

  • Worked around critical vulnerability in the built-in expat

System Message: WARNING/2 (<string>, line 229)

Bullet list ends without a blank line; unexpected unindent.

parser module that would cause a segmentation fault when parsing certain unicode characters. [malthe]

  • Add the internal symbol set to the first template scope; symbols in

System Message: WARNING/2 (<string>, line 233)

Bullet list ends without a blank line; unexpected unindent.

this scope will never be passed when filling macro slots (this supports a requirement in ZPT to keep a reference to the current template instance, which should never be carried over). [malthe]

1.0b25 (released 31/03/2009)

  • Use the 'xmlcharrefreplace' sub-encoding to ensure that non

System Message: WARNING/2 (<string>, line 241)

Bullet list ends without a blank line; unexpected unindent.

unicode-compatible encodings are handled correctly. [malthe]

  • Preserve HTML entities in output. See LP #350042. [malthe]
  • Respect ordering of static attributes and apply also to dynamic

System Message: WARNING/2 (<string>, line 246)

Bullet list ends without a blank line; unexpected unindent.

attributes. [malthe]

  • Protect import of cache created with other Python-version. [malthe]
  • Do not escape double quotes outside of attributes. LP

System Message: WARNING/2 (<string>, line 251)

Bullet list ends without a blank line; unexpected unindent.

#348743. [malthe]

1.0b24 (released 23/03/2009)

  • When translating a section with unnamed blocks using a message id,

System Message: WARNING/2 (<string>, line 257)

Bullet list ends without a blank line; unexpected unindent.

include contained elements as-is (without processing). [malthe]

  • Catch type errors when loading template from cache. [malthe]
  • Fixed issue where translating an element containing unnamed (missing

System Message: WARNING/2 (<string>, line 262)

Bullet list ends without a blank line; unexpected unindent.

an i18n:name attribute) subelements would cause broken output. It's now attempted to translate unnamed elements as-is (after processing, as straight HTML), although ill-advised. LP #335937. [malthe]

  • Fixed issue where concatenated output would sometimes fail due to

System Message: WARNING/2 (<string>, line 267)

Bullet list ends without a blank line; unexpected unindent.

incorrect type checking. [malthe]

  • Fixed bug where attributes from one of the default namespaces (those

System Message: WARNING/2 (<string>, line 270)

Bullet list ends without a blank line; unexpected unindent.

defined by the engine and which do not require explicit definition in the template). LP #340234. [malthe]

1.0b23 (released 13/03/2009)

  • Added get method to repeat dictionary. [malthe]
  • Avoid infinite loop when using nested macros. [sidnei, malthe]
  • When computing generator in repeat dictionary, swallow only

System Message: WARNING/2 (<string>, line 281)

Bullet list ends without a blank line; unexpected unindent.

type-errors. [malthe]

  • When accessing the macros attribute, make sure compiler is reset

System Message: WARNING/2 (<string>, line 284)

Bullet list ends without a blank line; unexpected unindent.

when auto_reload is true and the source file has been modified. [malthe]

  • Check attribute namespace against element namespace, instead of

System Message: WARNING/2 (<string>, line 288)

Bullet list ends without a blank line; unexpected unindent.

checking prefix. [sidnei]

1.0b22 (released 09/03/2009)

  • Do not reset a dynamic scope which is being passed in as a

System Message: WARNING/2 (<string>, line 294)

Bullet list ends without a blank line; unexpected unindent.

parameter. [malthe]

  • Fixed bug where code in exception handlers would not get correctly

System Message: WARNING/2 (<string>, line 297)

Bullet list ends without a blank line; unexpected unindent.

transformed. [malthe]

1.0b21 (released 05/03/2009)

  • Repeating over None is same as repeating over empty tuple. [malthe]
  • Added support for dynamic defaults. [malthe]
  • Parts may now prescribe which exceptions to allow (default is any). [malthe]
  • Added support for 'default' to fallback to default static content. [malthe]

1.0b20 (released 27/02/2009)

  • Revamped template exceptions formatting. Argument values are now

System Message: WARNING/2 (<string>, line 314)

Bullet list ends without a blank line; unexpected unindent.

presented briefly, rather than fully. [malthe]

1.0b19 (released 22/02/2009)

  • Added slight optimization to code transformer to avoid a second call

System Message: WARNING/2 (<string>, line 320)

Bullet list ends without a blank line; unexpected unindent.

on the dynamic scope object. [malthe]

  • Fixed bug where variable definition scope would not be

System Message: WARNING/2 (<string>, line 323)

Bullet list ends without a blank line; unexpected unindent.

honored. [malthe]

1.0b18 (released 19/02/2009)

  • Added support for cancelling an escape by offering a __html__

System Message: WARNING/2 (<string>, line 329)

Bullet list ends without a blank line; unexpected unindent.

method. [malthe]

  • Fixed issue where namespace prefix would not be recognized if

System Message: WARNING/2 (<string>, line 332)

Bullet list ends without a blank line; unexpected unindent.

defined below another namespace definition. [malthe]

  • Simplifed escaping routine; we only care about the classic three

System Message: WARNING/2 (<string>, line 335)

Bullet list ends without a blank line; unexpected unindent.

entities. [malthe]

  • Escape default translation content. [malthe]
  • Translation of None should return None. [malthe]
  • Omit the element that defines a slot, if it's filled. [malthe]

1.0b17 (released 13/02/2009)

  • Use tempfile.mkstemp to better garden temporary files. [malthe]
  • Fixed issue where auto_reload would have no effect. [malthe]
  • In debug-mode, source code is now written to disk, enabling us to

System Message: WARNING/2 (<string>, line 351)

Bullet list ends without a blank line; unexpected unindent.

load (compile) it with imp.load_source instead of exec. This allows pdb to step into the source code just like any other file-based module. [malthe]

1.0b16 (released 12/02/2009)

  • Parse templates only when needed, unless the environment variable

System Message: WARNING/2 (<string>, line 359)

Bullet list ends without a blank line; unexpected unindent.

'CHAMELEON_EAGER' is set. [malthe]

  • Correctly report back if the document is empty. [malthe]
  • Fixed bug that prevented the parsing of XML fragments if they were

System Message: WARNING/2 (<string>, line 364)

Bullet list ends without a blank line; unexpected unindent.

separated by comments. [malthe]

  • Improved feedback on XML parsing errors. [malthe]

1.0b15 (released 29/01/2009)

  • Fixed issue where attributes would be included for a foreign

System Message: WARNING/2 (<string>, line 372)

Bullet list ends without a blank line; unexpected unindent.

namespace even though they were not part of that namespace. [malthe]

  • Include (render) "foreign" namespace definitions in macros. [malthe]
  • Support macro definitions on elements with METAL prefix. [malthe]
  • Comments outside the root element get ignored (LP #317893). [sidnei]
  • Set the template as __traceback_info__ in render_template, so that

System Message: WARNING/2 (<string>, line 381)

Bullet list ends without a blank line; unexpected unindent.

for Zope 2/3 it shows up whenever an exception happens, making it easier to diagnose what's the failing template in cases where many templates and macros are being used to render a page. [sidnei]

  • Verify that macros exist when accessed using the

System Message: WARNING/2 (<string>, line 386)

Bullet list ends without a blank line; unexpected unindent.

dictionary-interface of the Macros object (LP #317572). [malthe]

  • Restructured compilation step such that templates are always parsed

System Message: WARNING/2 (<string>, line 389)

Bullet list ends without a blank line; unexpected unindent.

on source write, instead of 'just-in-time' before compilation. This will enable us to query the parsed template separately from compilation. [malthe]

  • Added pass statement to guarantee valid block

System Message: WARNING/2 (<string>, line 394)

Bullet list ends without a blank line; unexpected unindent.

structure (LP #312597). [malthe]

  • Raise KeyError instead of ValueError when a macro cannot be

System Message: WARNING/2 (<string>, line 397)

Bullet list ends without a blank line; unexpected unindent.

found. [malthe]

  • Removed Zope security configuration. [malthe]
  • Do not depend on component configuration. [malthe]
  • Make tests pass under Python 2.4 [chrism]

1.0b14 (released 18/12/2008)

  • Changed a try-except-finally construct into two nested try-except

System Message: WARNING/2 (<string>, line 409)

Bullet list ends without a blank line; unexpected unindent.

clause to retain Python 2.4 compatibility. [cguardia]

1.0b13 (released 15/12/2008)

  • Fixed handling of static attributes on foreign elements. [malthe]
  • Handle the case where the XML declaration does not have an

System Message: WARNING/2 (<string>, line 417)

Bullet list ends without a blank line; unexpected unindent.

encoding. [malthe]

  • Introduced new environment flag 'CHAMELEON_SOURCE' which determines

System Message: WARNING/2 (<string>, line 420)

Bullet list ends without a blank line; unexpected unindent.

whether the source-code should be written to disk before compilation. [malthe]

  • Ignore comments that appear before a root element. [malthe]
  • Issue a better error message if the expat parser has not been

System Message: WARNING/2 (<string>, line 426)

Bullet list ends without a blank line; unexpected unindent.

properly initialized. [malthe]

  • Merge adjacent strings in write-method. [malthe]
  • Added version-control to file cache. This facilitates cache

System Message: WARNING/2 (<string>, line 431)

Bullet list ends without a blank line; unexpected unindent.

invalidation on package upgrades. [malthe]

  • Don't flush writes manually; instead, make sure all writes use the

System Message: WARNING/2 (<string>, line 434)

Bullet list ends without a blank line; unexpected unindent.

out method and flush whenever write is used. This should prevent consecutive writes (grouping them into one, instead). [malthe]

  • Removed support for selectors bound to elements at compile-time. The

System Message: WARNING/2 (<string>, line 438)

Bullet list ends without a blank line; unexpected unindent.

motivation for this functionality was to implement Genshi match templates, however, incorrectly as it turns out. [malthe]

1.0b12 (released 03/12/2008)

  • Support template fragments, e.g. documents with more than one

System Message: WARNING/2 (<string>, line 445)

Bullet list ends without a blank line; unexpected unindent.

root element. [malthe]

  • Added namespace prefix 'xml' to default namespace mapping. [malthe]
  • Fixed root cause of issue with self-closing tags; an empty element

System Message: WARNING/2 (<string>, line 450)

Bullet list ends without a blank line; unexpected unindent.

text is now correctly differentiated from a self-closed tag (which does not have this attribute set). [malthe]

  • Removed support for compilation without lxml. [malthe]
  • Use xml.parsers.expat to parse template document instead of

System Message: WARNING/2 (<string>, line 456)

Bullet list ends without a blank line; unexpected unindent.

using lxml. This gives much greater control over edge-cases and allows us to lose many workarounds. [malthe]

  • Do not use XPath-expressions during compilation if lxml is not

System Message: WARNING/2 (<string>, line 460)

Bullet list ends without a blank line; unexpected unindent.

available. [malthe]

  • Ensure argument uniqueness for macro functions over the combined set of

System Message: WARNING/2 (<string>, line 463)

Bullet list ends without a blank line; unexpected unindent.

scope and keyword arguments. [hannosch]

  • Protect all itertools.chain statements with an encapsulating set() to

System Message: WARNING/2 (<string>, line 466)

Bullet list ends without a blank line; unexpected unindent.

ensure uniqueness. [hannosch]

1.0b11 (released 29/11/2008)

  • Ensure that function arguments passed into macros are unique. [hannosch]
  • Removed unused imports, thanks to PyFlakes. [hannosch]
  • Removed warning about utf-8 as a recommend default encoding. There is no

System Message: WARNING/2 (<string>, line 476)

Bullet list ends without a blank line; unexpected unindent.

apparent speed improvement anymore. [hannosch]

  • Use sourcecodegen package to generate Python-code from AST; this

System Message: WARNING/2 (<string>, line 479)

Bullet list ends without a blank line; unexpected unindent.

is done to avoid generating code using the compiler.pycodegen module, which has serious issues. Interestingly, this approach cuts compilation time in half. [malthe]

  • Bind code-generation utilities in closure as well. [malthe]
  • Reworked global scope initialization; we now bind these using a

System Message: WARNING/2 (<string>, line 486)

Bullet list ends without a blank line; unexpected unindent.

closure. [malthe]

  • Reworked repeat-variable logic. An iterator would be realized at any

System Message: WARNING/2 (<string>, line 489)

Bullet list ends without a blank line; unexpected unindent.

rate, so let's not try to be clever. [malthe]

  • Made repeat-variable work with iterables which do not announce their

System Message: WARNING/2 (<string>, line 492)

Bullet list ends without a blank line; unexpected unindent.

length before execution. [malthe]

  • Added namespace attribute support. [malthe]
  • Static attributes are now computed such that attributes are omitted

System Message: WARNING/2 (<string>, line 497)

Bullet list ends without a blank line; unexpected unindent.

according to a ns_omit flag, and they are always prefixed according to the element's nsmap. [malthe]

  • Do not fix-up self-closing tags if an XML declaration is present

System Message: WARNING/2 (<string>, line 501)

Bullet list ends without a blank line; unexpected unindent.

without a DOCTYPE. [malthe]

  • Prefix tags which do not belong to the default namespace. [malthe]

1.0b10 (released 24/11/2008)

  • Do not apply namespace attribute 'xmlns' to root element if not

System Message: WARNING/2 (<string>, line 509)

Bullet list ends without a blank line; unexpected unindent.

set. [malthe]

  • Fixed tuple unpacking in repeat loops. [malthe]
  • Use a custom simple BufferIO class for the lxml.etree parser instead of

System Message: WARNING/2 (<string>, line 514)

Bullet list ends without a blank line; unexpected unindent.

standard StringIO. [hannosch]

  • This was the wrong fix, however; what needed to be changed is that

System Message: WARNING/2 (<string>, line 517)

Bullet list ends without a blank line; unexpected unindent.

the class of the marker isntance must be available at module-scope. [malthe]

  • Changed generation.marker back to a normal object instance. Otherwise we get

System Message: WARNING/2 (<string>, line 521)

Bullet list ends without a blank line; unexpected unindent.

PicklingError: Can't pickle <class 'chameleon.core.generation.marker'>: it's not the same object as chameleon.core.generation.marker. [hannosch]

  • Changed two isinstance checks to check for basestring instead of str or

System Message: WARNING/2 (<string>, line 525)

Bullet list ends without a blank line; unexpected unindent.

unicode. [hannosch]

1.0b9 (released 19/11/2008)

  • Added label property to expressions; this allows providing a

System Message: WARNING/2 (<string>, line 531)

Bullet list ends without a blank line; unexpected unindent.

human-readable label for values that are going to evaluated. [malthe]

  • Normalize METAL slot names to ensure they're valid Python variable

System Message: WARNING/2 (<string>, line 535)

Bullet list ends without a blank line; unexpected unindent.

names. Non-valid characters are converted to underscore. [malthe]

  • Renamed dynamic scope variable to econtext in order to reduce

System Message: WARNING/2 (<string>, line 538)

Bullet list ends without a blank line; unexpected unindent.

compatibility issues with ZPT. [malthe]

  • Fixed issue where multiple defines would cause integrity

System Message: WARNING/2 (<string>, line 541)

Bullet list ends without a blank line; unexpected unindent.

issues. [malthe]

  • Avoid self-closing tags that are not allowed in transitional

System Message: WARNING/2 (<string>, line 544)

Bullet list ends without a blank line; unexpected unindent.

HTML. [malthe]

  • Use custom serialization method to serialize static default

System Message: WARNING/2 (<string>, line 547)

Bullet list ends without a blank line; unexpected unindent.

translation blocks; we can't rely on lxml for sane output. [malthe]

  • Make default symbol available to dynamic attribute

System Message: WARNING/2 (<string>, line 551)

Bullet list ends without a blank line; unexpected unindent.

evaluations. [malthe]

  • Visit evaluation before assignment in order to support assignments

System Message: WARNING/2 (<string>, line 554)

Bullet list ends without a blank line; unexpected unindent.

that rely on the same name in the dynamic variable scope. [malthe]

  • Conditions may now be inverted; this facilitates the bug-fix of an

System Message: WARNING/2 (<string>, line 557)

Bullet list ends without a blank line; unexpected unindent.

issue where omit conditions were multi-part. [malthe]

  • Make sure that arguments passed into the render-method are

System Message: WARNING/2 (<string>, line 560)

Bullet list ends without a blank line; unexpected unindent.

introduced in every nested scope. [malthe]

  • Added translation language to main scope and make sure redefining it

System Message: WARNING/2 (<string>, line 563)

Bullet list ends without a blank line; unexpected unindent.

inside a closure does not cause issues with nested scope locals. [malthe]

1.0b8 (released 16/11/2008)

  • Only pretend to delete variables; this improves performance and

System Message: WARNING/2 (<string>, line 570)

Bullet list ends without a blank line; unexpected unindent.

guarantees that we don't attempt to delete a variables which is used in a nested scope (closure). It works, because the code generation transform silently drops the delete-statements, but removes them from its internal scope dictionary. [malthe]

  • Remove variables from scope dictionary upon block exit. [malthe]
  • Split out compile-function such that we can always write the source

System Message: WARNING/2 (<string>, line 578)

Bullet list ends without a blank line; unexpected unindent.

code to disk in debug-mode. [malthe]

  • Correctly transfer scope to callback-function that will fill macro

System Message: WARNING/2 (<string>, line 581)

Bullet list ends without a blank line; unexpected unindent.

slot contents. Previously, we would precompute fill-slots, but this was wrong since it's expected to inherit the scope of the macro currently in use. [malthe]

  • Made error handler compatible with Python 2.4 [malthe]
  • Maintain symbol mappings for joined expressions. [malthe]

1.0b7 (released 15/11/2008)

  • Fixed interpolation edge where a right curly brace not part of an

System Message: WARNING/2 (<string>, line 593)

Bullet list ends without a blank line; unexpected unindent.

interpolation expression would cancel a succeeding interpolation. [malthe]

  • Pass target_language when using macros. [malthe]

1.0b6 (released 13/11/2008)

  • When validating inserted content (in debug-mode), make sure we wrap

System Message: WARNING/2 (<string>, line 602)

Bullet list ends without a blank line; unexpected unindent.

content as a proper HTML document, including HTML entity definitions. [malthe]

  • If an element does not belong to a known namespace, assume it's the

System Message: WARNING/2 (<string>, line 606)

Bullet list ends without a blank line; unexpected unindent.

default namespace. This change is relevant after the introduction of fallback elements. [malthe]

  • XML declarations should be printed with or without a doctype

System Message: WARNING/2 (<string>, line 610)

Bullet list ends without a blank line; unexpected unindent.

element, and only if the template includes it. [malthe]

1.0b5 (released 12/11/2008)

  • Encode code annotations if encoding is required. [malthe]
  • Added filename to XML syntax error exception message. [malthe]
  • Fixed bug where a template would be wrapped with namespace

System Message: WARNING/2 (<string>, line 620)

Bullet list ends without a blank line; unexpected unindent.

definitions even if an XML header is present. [malthe]

  • Added support for fallback element. [malthe]
  • Enabled error handler for macro renderer. [malthe]
  • Added error handler which adds debugging information to the

System Message: WARNING/2 (<string>, line 627)

Bullet list ends without a blank line; unexpected unindent.

exception object's string output (in debug-mode only). [malthe]

1.0b4 (released 28/10/2008)

  • Fixed translation issues (see recently added tests). [malthe]
  • Refactored string coercion. [malthe]

1.0b3 (released 13/10/2008)

  • Fixed issue with parsing expression containing curly

System Message: WARNING/2 (<string>, line 640)

Bullet list ends without a blank line; unexpected unindent.

braces. [malthe]

  • Added support for unscoped variable assignment. [malthe]

1.0b2 (released 11/10/2008)

  • Added support for translating dynamic body text (used in

System Message: WARNING/2 (<string>, line 648)

Bullet list ends without a blank line; unexpected unindent.

interpolation expressions). [malthe]

  • Added support for macros prebound to keyword arguments. [malthe]

1.0b1 (released 2/10/2008)

  • Fixed bugs related to temporary variables with loops and

System Message: WARNING/2 (<string>, line 656)

Bullet list ends without a blank line; unexpected unindent.

conditions. [malthe]

  • Set default value for auto-reload based on the CHAMELEON_DEBUG

System Message: WARNING/2 (<string>, line 659)

Bullet list ends without a blank line; unexpected unindent.

environment variable check. [malthe]

1.0a4 (released 9/29/2008)

  • Added method to generate unscoped temporary variables. [malthe]
  • Make lxml a hard dependency for now until the lxml-less logic is stable.

System Message: WARNING/2 (<string>, line 667)

Bullet list ends without a blank line; unexpected unindent.

[wichert]

1.0a3 (released 9/26/2008)

  • TemplateLoader now checks a default_parser class attribute if no

System Message: WARNING/2 (<string>, line 673)

Bullet list ends without a blank line; unexpected unindent.

parser is specified. [wichert]

1.0a2 (released 9/26/2008)

  • Added support for dynamic skip condition. [malthe]
  • Fixed bug where an AttributeError would be raised when using the

System Message: WARNING/2 (<string>, line 681)

Bullet list ends without a blank line; unexpected unindent.

file cache. [malthe]

1.0a1 (released 9/24/2008)

  • First release.

Subscribe to package updates

Last updated Jan 5th, 2011

Download Stats

Last month:1

What does the lock icon mean?

Builds marked with a lock icon are only available via PyPM to users with a current ActivePython Business Edition subscription.

Need custom builds or support?

ActivePython Enterprise Edition guarantees priority access to technical support, indemnification, expert consulting and quality-assured language builds.

Plan on re-distributing ActivePython?

Get re-distribution rights and eliminate legal risks with ActivePython OEM Edition.