Common Definitions¶
Common definitions used by TAL and METAL compilation and transformation.
-
zope.tal.taldefs.
TAL_VERSION
= '1.6'¶ Version of the specification we implement.
-
zope.tal.taldefs.
XML_NS
= 'http://www.w3.org/XML/1998/namespace'¶ URI for XML namespace
-
zope.tal.taldefs.
XMLNS_NS
= 'http://www.w3.org/2000/xmlns/'¶ URI for XML NS declarations
-
zope.tal.taldefs.
ZOPE_TAL_NS
= 'http://xml.zope.org/namespaces/tal'¶ TAL namespace URI
-
zope.tal.taldefs.
ZOPE_METAL_NS
= 'http://xml.zope.org/namespaces/metal'¶ METAL namespace URI
-
zope.tal.taldefs.
ZOPE_I18N_NS
= 'http://xml.zope.org/namespaces/i18n'¶ I18N namespace URI
-
zope.tal.taldefs.
KNOWN_METAL_ATTRIBUTES
= frozenset(['use-macro', 'define-slot', 'extend-macro', 'define-macro', 'fill-slot'])¶ Known METAL attributes
-
zope.tal.taldefs.
KNOWN_TAL_ATTRIBUTES
= frozenset(['repeat', 'on-error', 'script', 'replace', 'content', 'omit-tag', 'attributes', 'tal tag', 'condition', 'define'])¶ Known TAL attributes
-
zope.tal.taldefs.
KNOWN_I18N_ATTRIBUTES
= frozenset(['domain', 'target', 'ignore-attributes', 'ignore', 'source', 'attributes', 'translate', 'data', 'name'])¶ Known I18N attributes
-
exception
zope.tal.taldefs.
TALError
(msg, position=(None, None))[source]¶ Bases:
exceptions.Exception
A base exception for errors raised by this implementation.
-
exception
zope.tal.taldefs.
METALError
(msg, position=(None, None))[source]¶ Bases:
zope.tal.taldefs.TALError
An error parsing on running METAL macros.
-
exception
zope.tal.taldefs.
TALExpressionError
(msg, position=(None, None))[source]¶ Bases:
zope.tal.taldefs.TALError
An error parsing or running a TAL expression.
-
exception
zope.tal.taldefs.
I18NError
(msg, position=(None, None))[source]¶ Bases:
zope.tal.taldefs.TALError
An error parsing a I18N expression.
-
class
zope.tal.taldefs.
ErrorInfo
(err, position=(None, None))[source]¶ Default implementation of
zope.tal.interfaces.ITALExpressionErrorInfo
.