#NEWLINE# def _get_cached_value_and_date( self , ctx , node_state ) : #NEWLINE# #INDENT# '\n        returns the cached value and date for this node in a context\n        ' #NEWLINE# if ( not node_state . has_value ) : #NEWLINE# #INDENT# raise KeyError ( ( '%s not found in %s' % ( self . name , ctx ) ) ) #NEWLINE# #UNINDENT# return ( node_state . value , node_state . date )