def _list_libraries(request):
 lib_info = [{'display_name': lib.display_name, 'library_key': unicode(lib.location.library_key)} for lib in modulestore().get_libraries() if has_studio_read_access(request.user, lib.location.library_key)]
 return JsonResponse(lib_info)

def _list_libraries ( request ) : lib_info = [ { 'display_name' : lib . display_name , 'library_key' : unicode ( lib . location . library_key ) } for lib in modulestore ( ) . get_libraries ( ) if has_studio_read_access ( request . user , lib . location . library_key ) ] return JsonResponse ( lib_info )
list all accessible libraries .