diff --git a/lms/djangoapps/courseware/views.py b/lms/djangoapps/courseware/views.py index fa8245212e..4489b08ca0 100644 --- a/lms/djangoapps/courseware/views.py +++ b/lms/djangoapps/courseware/views.py @@ -34,19 +34,6 @@ log = logging.getLogger("mitx.courseware") template_imports = {'urllib': urllib} - -def test_grading(request, course_id): - course = check_course(course_id) - - sections, all_descriptors = grades.get_graded_sections(course) - student_module_cache = StudentModuleCache(request.user, descriptors=all_descriptors) - - grade_result = grades.fast_grade(request.user, request, sections, course.grader, student_module_cache) - - return HttpResponse("" + json.dumps(grade_result) + "") - - - def user_groups(user): if not user.is_authenticated(): return [] @@ -92,6 +79,7 @@ def gradebook(request, course_id): student_objects = User.objects.all()[:100] student_info = [] + #TODO: Only select students who are in the course for student in student_objects: student_module_cache = StudentModuleCache(student, descriptors=all_descriptors) diff --git a/lms/urls.py b/lms/urls.py index 10e9e750c9..d93eb03873 100644 --- a/lms/urls.py +++ b/lms/urls.py @@ -116,10 +116,6 @@ if settings.COURSEWARE_ENABLED: #About the course url(r'^courses/(?P[^/]+/[^/]+/[^/]+)/about$', 'courseware.views.course_about', name="about_course"), - - # TODO: Important. Remove this after testing! - url(r'^courses/(?P[^/]+/[^/]+/[^/]+)/grade$', - 'courseware.views.test_grading', name="info"), #Inside the course url(r'^courses/(?P[^/]+/[^/]+/[^/]+)/info$',