Commit 4825ad7a by Vik Paruchuri

Fix module imports

parent 59ba3083
...@@ -9,34 +9,30 @@ in settings.PEER_GRADING_INTERFACE ...@@ -9,34 +9,30 @@ in settings.PEER_GRADING_INTERFACE
import json import json
import logging import logging
import requests import requests
from requests.exceptions import RequestException, ConnectionError, HTTPError
import sys import sys
from django.conf import settings from django.conf import settings
from django.http import HttpResponse, Http404 from django.http import HttpResponse, Http404
from grading_service import GradingService
from grading_service import GradingServiceError from combined_open_ended_rubric import CombinedOpenEndedRubric
from courseware.access import has_access
from util.json_request import expect_json
from xmodule.course_module import CourseDescriptor
from xmodule.combined_open_ended_rubric import CombinedOpenEndedRubric
from student.models import unique_id_for_user
from lxml import etree from lxml import etree
import copy import copy
from fs.errors import ResourceNotFoundError
import itertools import itertools
import json import json
import logging import logging
from lxml import etree
from lxml.html import rewrite_links from lxml.html import rewrite_links
from path import path
import os import os
import sys
from pkg_resources import resource_string from pkg_resources import resource_string
from .capa_module import only_one, ComplexEncoder from .capa_module import only_one, ComplexEncoder
from .editing_module import EditingDescriptor
from .html_checker import check_html
from progress import Progress
from .stringify import stringify_children
from .x_module import XModule
from .xml_module import XmlDescriptor
from xmodule.modulestore import Location
from peer_grading_service import peer_grading_service, GradingServiceError from peer_grading_service import peer_grading_service, GradingServiceError
...@@ -391,7 +387,7 @@ class PeerGradingDescriptor(XmlDescriptor, EditingDescriptor): ...@@ -391,7 +387,7 @@ class PeerGradingDescriptor(XmlDescriptor, EditingDescriptor):
Module for adding combined open ended questions Module for adding combined open ended questions
""" """
mako_template = "widgets/html-edit.html" mako_template = "widgets/html-edit.html"
module_class = CombinedOpenEndedModule module_class = PeerGradingModule
filename_extension = "xml" filename_extension = "xml"
stores_state = True stores_state = True
...@@ -413,6 +409,7 @@ class PeerGradingDescriptor(XmlDescriptor, EditingDescriptor): ...@@ -413,6 +409,7 @@ class PeerGradingDescriptor(XmlDescriptor, EditingDescriptor):
'task_xml': dictionary of xml strings, 'task_xml': dictionary of xml strings,
} }
""" """
log.debug("In definition")
expected_children = [] expected_children = []
for child in expected_children: for child in expected_children:
if len(xml_object.xpath(child)) == 0: if len(xml_object.xpath(child)) == 0:
......
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