#NEWLINE# def format_combine( self , data_by_importance , lines , exc_info ) : #NEWLINE# #INDENT# lines [ : 0 ] = [ value for ( n , value ) in data_by_importance [ 'important' ] ] #NEWLINE# lines . append ( exc_info ) #NEWLINE# for name in ( 'normal' , 'supplemental' ) : #NEWLINE# #INDENT# lines . extend ( [ value for ( n , value ) in data_by_importance [ name ] ] ) #NEWLINE# #UNINDENT# if data_by_importance [ 'extra' ] : #NEWLINE# #INDENT# lines . append ( ( '<script type="text/javascript">\nshow_button(\'extra_data\', \'extra data\');\n</script>\n' + '<div id="extra_data" class="hidden-data">\n' ) ) #NEWLINE# lines . extend ( [ value for ( n , value ) in data_by_importance [ 'extra' ] ] ) #NEWLINE# lines . append ( '</div>' ) #NEWLINE# #UNINDENT# text = self . format_combine_lines ( lines ) #NEWLINE# if self . include_reusable : #NEWLINE# #INDENT# return ( ( error_css + hide_display_js ) + text ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# return text