Expression Engine

class zope.tales.tales.Context(engine, contexts)[source]

Expression engine, an implementation of zope.tal.interfaces.ITALExpressionEngine.

This class is called Context because an instance of this class holds context information (namespaces) that it uses when evaluating compiled expressions.

Parameters:
  • engine – A ExpressionEngine (a zope.tal.interfaces.ITALExpressionCompiler)

  • contexts – A mapping (namespace) of variables that forms the base variable scope.

Exceptions

A number of exceptions are defined.

class zope.tales.tales.TALESError[source]

Error during TALES evaluation

class zope.tales.tales.Undefined[source]

Exception raised on traversal of an undefined path.

class zope.tales.tales.CompilerError[source]

TALES Compiler Error

class zope.tales.tales.RegistrationError[source]

Expression type or base name registration Error.