#NEWLINE# def add_post_render_callback( self , callback ) : #NEWLINE# #INDENT# 'Adds a new post-rendering callback.\n\n        If the response has already been rendered,\n        invoke the callback immediately.\n        ' #NEWLINE# if self . _is_rendered : #NEWLINE# #INDENT# callback ( self ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# self . _post_render_callbacks . append ( self )