Commit 084a3c33 by Diana Huang

Update comments and remove some unnecessary code

parent 0bfb1fee
""" """
This file demonstrates writing tests using the unittest module. These will pass Tests for open ended grading interfaces
when you run "manage.py test".
Replace this with more appropriate tests for your application. django-admin.py test --settings=lms.envs.test --pythonpath=. lms/djangoapps/open_ended_grading
""" """
from django.test import TestCase from django.test import TestCase
......
# Grading Views # Grading Views
from collections import defaultdict
import csv
import logging import logging
import os
import urllib import urllib
from django.conf import settings from django.conf import settings
from django.contrib.auth.models import User, Group
from django.http import HttpResponse
from django_future.csrf import ensure_csrf_cookie
from django.views.decorators.cache import cache_control from django.views.decorators.cache import cache_control
from mitxmako.shortcuts import render_to_response from mitxmako.shortcuts import render_to_response
from django.core.urlresolvers import reverse from django.core.urlresolvers import reverse
from courseware import grades
from courseware.access import has_access, get_access_group_name
from courseware.courses import get_course_with_access
from django_comment_client.models import Role, FORUM_ROLE_ADMINISTRATOR, FORUM_ROLE_MODERATOR, FORUM_ROLE_COMMUNITY_TA
from django_comment_client.utils import has_forum_access
from psychometrics import psychoanalyze
from student.models import CourseEnrollment
from student.models import unique_id_for_user from student.models import unique_id_for_user
from xmodule.course_module import CourseDescriptor from courseware.courses import get_course_with_access
from xmodule.modulestore import Location
from xmodule.modulestore.django import modulestore
from xmodule.modulestore.exceptions import InvalidLocationError, ItemNotFoundError, NoPathToItem
from xmodule.modulestore.search import path_to_location
from peer_grading_service import PeerGradingService from peer_grading_service import PeerGradingService
from peer_grading_service import MockPeerGradingService from peer_grading_service import MockPeerGradingService
from grading_service import GradingServiceError from grading_service import GradingServiceError
import json import json
import track.views
from .staff_grading import StaffGrading from .staff_grading import StaffGrading
...@@ -52,14 +33,11 @@ def staff_grading(request, course_id): ...@@ -52,14 +33,11 @@ def staff_grading(request, course_id):
""" """
course = get_course_with_access(request.user, course_id, 'staff') course = get_course_with_access(request.user, course_id, 'staff')
grading = StaffGrading(course)
ajax_url = reverse('staff_grading', kwargs={'course_id': course_id}) ajax_url = reverse('staff_grading', kwargs={'course_id': course_id})
if not ajax_url.endswith('/'): if not ajax_url.endswith('/'):
ajax_url += '/' ajax_url += '/'
return render_to_response('instructor/staff_grading.html', { return render_to_response('instructor/staff_grading.html', {
'view_html': '',
'course': course, 'course': course,
'course_id': course_id, 'course_id': course_id,
'ajax_url': ajax_url, 'ajax_url': ajax_url,
...@@ -99,7 +77,6 @@ def peer_grading(request, course_id): ...@@ -99,7 +77,6 @@ def peer_grading(request, course_id):
ajax_url += '/' ajax_url += '/'
return render_to_response('peer_grading/peer_grading.html', { return render_to_response('peer_grading/peer_grading.html', {
'view_html': '',
'course': course, 'course': course,
'course_id': course_id, 'course_id': course_id,
'ajax_url': ajax_url, 'ajax_url': ajax_url,
......
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