Commit 7f5246f6 by Bridger Maxwell

Removed test view for grading.

parent 6d650d18
......@@ -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("<html><head></head><body>" + json.dumps(grade_result) + "</body></html>")
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)
......
......@@ -116,10 +116,6 @@ if settings.COURSEWARE_ENABLED:
#About the course
url(r'^courses/(?P<course_id>[^/]+/[^/]+/[^/]+)/about$',
'courseware.views.course_about', name="about_course"),
# TODO: Important. Remove this after testing!
url(r'^courses/(?P<course_id>[^/]+/[^/]+/[^/]+)/grade$',
'courseware.views.test_grading', name="info"),
#Inside the course
url(r'^courses/(?P<course_id>[^/]+/[^/]+/[^/]+)/info$',
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment