def get_course_info_section(request, user, course, section_key):
 info_module = get_course_info_section_module(request, user, course, section_key)
 html = ''
 if (info_module is not None):
  try:
   html = info_module.render(STUDENT_VIEW).content
  except Exception:
   html = render_to_string('courseware/error-message.html', None)
   log.exception(u'Error rendering course_id=%s, section_key=%s', unicode(course.id), section_key)
 return html

def get_course_info_section ( request , user , course , section_key ) : info_module = get_course_info_section_module ( request , user , course , section_key ) html = '' if ( info_module is not None ) : try : html = info_module . render ( STUDENT_VIEW ) . content except Exception : html = render_to_string ( 'courseware/error-message.html' , None ) log . exception ( u'Error rendering course_id=%s, section_key=%s' , unicode ( course . id ) , section_key ) return html
this returns the snippet of html to be rendered on the course info page .