#NEWLINE# def render( self , context ) : #NEWLINE# #INDENT# self . filter_expression . var . translate = ( not self . noop ) #NEWLINE# if self . message_context : #NEWLINE# #INDENT# self . filter_expression . var . message_context = self . message_context . resolve ( context ) #NEWLINE# #UNINDENT# output = self . filter_expression . resolve ( context ) #NEWLINE# value = _render_value_in_context ( output , context ) #NEWLINE# if context . asvar : #NEWLINE# #INDENT# context [ self . asvar ] = value #NEWLINE# return '' #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# return value