def get_course_about_section(request, course, section_key):
 html_sections = {'short_description', 'description', 'key_dates', 'video', 'course_staff_short', 'course_staff_extended', 'requirements', 'syllabus', 'textbook', 'faq', 'more_info', 'overview', 'effort', 'end_date', 'prerequisites', 'ocw_links'}
 if (section_key in html_sections):
  try:
   loc = course.location.replace(category='about', name=section_key)
   field_data_cache = FieldDataCache([], course.id, request.user)
   about_module = get_module(request.user, request, loc, field_data_cache, log_if_not_found=False, wrap_xmodule_display=False, static_asset_path=course.static_asset_path, course=course)
   html = ''
   if (about_module is not None):
    try:
     html = about_module.render(STUDENT_VIEW).content
    except Exception:
     html = render_to_string('courseware/error-message.html', None)
     log.exception(u'Error rendering course=%s, section_key=%s', course, section_key)
   return html
  except ItemNotFoundError:
   log.warning(u'Missing about section %s in course %s', section_key, course.location.to_deprecated_string())
   return None
 raise KeyError(('Invalid about key ' + str(section_key)))

def get_course_about_section ( request , course , section_key ) : html_sections = { 'short_description' , 'description' , 'key_dates' , 'video' , 'course_staff_short' , 'course_staff_extended' , 'requirements' , 'syllabus' , 'textbook' , 'faq' , 'more_info' , 'overview' , 'effort' , 'end_date' , 'prerequisites' , 'ocw_links' } if ( section_key in html_sections ) : try : loc = course . location . replace ( category = 'about' , name = section_key ) field_data_cache = FieldDataCache ( [ ] , course . id , request . user ) about_module = get_module ( request . user , request , loc , field_data_cache , log_if_not_found = False , wrap_xmodule_display = False , static_asset_path = course . static_asset_path , course = course ) html = '' if ( about_module is not None ) : try : html = about_module . render ( STUDENT_VIEW ) . content except Exception : html = render_to_string ( 'courseware/error-message.html' , None ) log . exception ( u'Error rendering course=%s, section_key=%s' , course , section_key ) return html except ItemNotFoundError : log . warning ( u'Missing about section %s in course %s' , section_key , course . location . to_deprecated_string ( ) ) return None raise KeyError ( ( 'Invalid about key ' + str ( section_key ) ) )
this returns the snippet of html to be rendered on the course about page .