/ HappyDoc3-r3_1 / happydoclib / docset / docset_TAL / hdTALES.py / Context
Expression Context
An instance of this class holds context information that it can
use to evaluate compiled expressions.
Methods
|
|
|
endScope
|
endScope ( self )
|
|
evaluateStructure
|
evaluateStructure ( self, expr )
|
|
beginScope
|
beginScope ( self )
|
|
setGlobal
|
setGlobal (
self,
name,
value,
)
|
|
getDefault
|
getDefault ( self )
|
|
evaluate
|
evaluate (
self,
expression,
isinstance=isinstance,
StringType=StringType,
)
Exceptions
|
|
TALESError, ( ` expression `, sys.exc_info(), self.position ), sys.exc_info() [ 2 ]
err, None, sys.exc_info() [ 2 ]
|
|
|
setRepeat
|
setRepeat (
self,
name,
expr,
)
|
|
getCompiler
|
getCompiler ( self )
|
|
setLocal
|
setLocal (
self,
name,
value,
)
|
|
getTALESError
|
getTALESError ( self )
|
|
evaluateText
|
evaluateText (
self,
expr,
none=None,
)
|
|
evaluateBoolean
|
evaluateBoolean ( self, expr )
|
|
evaluateMacro
|
evaluateMacro ( self, expr )
|
|
getCompilerError
|
getCompilerError ( self )
|
|
setPosition
|
setPosition ( self, position )
|
|
__init__
|
__init__ (
self,
engine,
contexts,
)
|
|
|