#NEWLINE# def evaluateConstant( node , sphinxContext ) : #NEWLINE# #INDENT# if ( node . value is None ) : #NEWLINE# #INDENT# hsBindings = HyperspaceBindings ( sphinxContext ) #NEWLINE# previousLocalVariables = sphinxContext . localVariables #NEWLINE# sphinxContext . localVariables = { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } #NEWLINE# node . value = evaluate ( node . expr , sphinxContext ) #NEWLINE# if sphinxContext . formulaOptions . traceVariableSetExpressionEvaluation : #NEWLINE# #INDENT# sphinxContext . modelXbrl . info ( 'sphinx:trace' , _ ( 'Constant %(name)s assigned value: %(value)s' ) , sourceFileLine = node . sourceFileLine , name = node . constantName , value = node . value ) #NEWLINE# #UNINDENT# hsBindings . close ( ) #NEWLINE# sphinxContext . localVariables = previousLocalVariables #NEWLINE# #UNINDENT# return node . value