#NEWLINE# def set_filename( self , name , renderer_context ) : #NEWLINE# #INDENT# type_name = ( 'attachment; filename=%s' % name ) #NEWLINE# try : #NEWLINE# #INDENT# renderer_context [ 'response' ] [ 'Content-Disposition' ] = type_name #NEWLINE# #UNINDENT# except ( KeyError , TypeError ) : #NEWLINE# #INDENT# pass