@login_required
@ensure_csrf_cookie
@require_http_methods(('GET', 'POST', 'PUT', 'DELETE'))
def course_team_handler(request, course_key_string=None, email=None):
 course_key = (CourseKey.from_string(course_key_string) if course_key_string else None)
 if ('application/json' in request.META.get('HTTP_ACCEPT', 'application/json')):
  return _course_team_user(request, course_key, email)
 elif (request.method == 'GET'):
  return _manage_users(request, course_key)
 else:
  return HttpResponseNotFound()

@ login_required @ ensure_csrf_cookie @ require_http_methods ( ( 'GET' , 'POST' , 'PUT' , 'DELETE' ) ) def course_team_handler ( request , course_key_string = None , email = None ) : course_key = ( CourseKey . from_string ( course_key_string ) if course_key_string else None ) if ( 'application/json' in request . META . get ( 'HTTP_ACCEPT' , 'application/json' ) ) : return _course_team_user ( request , course_key , email ) elif ( request . method == 'GET' ) : return _manage_users ( request , course_key ) else : return HttpResponseNotFound ( )
the restful handler for course team users .