def get_course_tab_list(request, course):
 user = request.user
 xmodule_tab_list = CourseTabList.iterate_displayable(course, user=user)
 course_tab_list = []
 must_complete_ee = user_must_complete_entrance_exam(request, user, course)
 for tab in xmodule_tab_list:
  if must_complete_ee:
   if (tab.type != 'courseware'):
    continue
   tab.name = _('Entrance Exam')
  if ((tab.type == 'static_tab') and tab.course_staff_only and (not bool((user and has_access(user, 'staff', course, course.id))))):
   continue
  course_tab_list.append(tab)
 course_tab_list += _get_dynamic_tabs(course, user)
 return course_tab_list

def get_course_tab_list ( request , course ) : user = request . user xmodule_tab_list = CourseTabList . iterate_displayable ( course , user = user ) course_tab_list = [ ] must_complete_ee = user_must_complete_entrance_exam ( request , user , course ) for tab in xmodule_tab_list : if must_complete_ee : if ( tab . type != 'courseware' ) : continue tab . name = _ ( 'Entrance Exam' ) if ( ( tab . type == 'static_tab' ) and tab . course_staff_only and ( not bool ( ( user and has_access ( user , 'staff' , course , course . id ) ) ) ) ) : continue course_tab_list . append ( tab ) course_tab_list += _get_dynamic_tabs ( course , user ) return course_tab_list
retrieves the course tab list from xmodule .