def _accessible_courses_summary_list(request):
 def course_filter(course_summary):
  '\n        Filter out unusable and inaccessible courses\n        '
  if (course_summary.location.course == 'templates'):
   return False
  return has_studio_read_access(request.user, course_summary.id)
 courses_summary = filter(course_filter, modulestore().get_course_summaries())
 in_process_course_actions = get_in_process_course_actions(request)
 return (courses_summary, in_process_course_actions)

def _accessible_courses_summary_list ( request ) : def course_filter ( course_summary ) : if ( course_summary . location . course == 'templates' ) : return False return has_studio_read_access ( request . user , course_summary . id ) courses_summary = filter ( course_filter , modulestore ( ) . get_course_summaries ( ) ) in_process_course_actions = get_in_process_course_actions ( request ) return ( courses_summary , in_process_course_actions )
list all courses available to the logged in user by iterating through all the courses .