def upload_exec_summary_to_store(data_dict, report_name, course_id, generated_at, config_name='FINANCIAL_REPORTS'):
 report_store = ReportStore.from_config(config_name)
 output_buffer = StringIO(render_to_string('instructor/instructor_dashboard_2/executive_summary.html', data_dict))
 report_store.store(course_id, u'{course_prefix}_{report_name}_{timestamp_str}.html'.format(course_prefix=course_filename_prefix_generator(course_id), report_name=report_name, timestamp_str=generated_at.strftime('%Y-%m-%d-%H%M')), output_buffer)
 tracker.emit(REPORT_REQUESTED_EVENT_NAME, {'report_type': report_name})

def upload_exec_summary_to_store ( data_dict , report_name , course_id , generated_at , config_name = 'FINANCIAL_REPORTS' ) : report_store = ReportStore . from_config ( config_name ) output_buffer = StringIO ( render_to_string ( 'instructor/instructor_dashboard_2/executive_summary.html' , data_dict ) ) report_store . store ( course_id , u'{course_prefix}_{report_name}_{timestamp_str}.html' . format ( course_prefix = course_filename_prefix_generator ( course_id ) , report_name = report_name , timestamp_str = generated_at . strftime ( '%Y-%m-%d-%H%M' ) ) , output_buffer ) tracker . emit ( REPORT_REQUESTED_EVENT_NAME , { 'report_type' : report_name } )
upload executive summary html file using reportstore .