diff --git a/common/lib/capa/inputtypes.py b/common/lib/capa/inputtypes.py index de3e20c1cf..3b25be3db7 100644 --- a/common/lib/capa/inputtypes.py +++ b/common/lib/capa/inputtypes.py @@ -206,7 +206,7 @@ def textline(element, value, state, render_template, msg=""): Simple text line input, with optional size specification. ''' if element.get('math') or element.get('dojs'): # 'dojs' flag is temporary, for backwards compatibility with 8.02x - return SimpleInput.xml_tags['textline_dynamath'](element,value,state,msg) + return SimpleInput.xml_tags['textline_dynamath'](element,value,state,render_template,msg) eid=element.get('id') count = int(eid.split('_')[-2])-1 # HACK size = element.get('size') diff --git a/lms/lib/dogfood/check.py b/lms/lib/dogfood/check.py index 574a01e0b0..1a3979c238 100644 --- a/lms/lib/dogfood/check.py +++ b/lms/lib/dogfood/check.py @@ -5,7 +5,7 @@ import string import traceback from django.conf import settings -import courseware.capa.capa_problem as lcp +import capa.capa_problem as lcp from dogfood.views import update_problem def GenID(length=8, chars=string.letters + string.digits): diff --git a/lms/lib/dogfood/views.py b/lms/lib/dogfood/views.py index 31d3b3ded2..17096afc70 100644 --- a/lms/lib/dogfood/views.py +++ b/lms/lib/dogfood/views.py @@ -21,7 +21,6 @@ from django.http import HttpResponse from django.shortcuts import redirect from mitxmako.shortcuts import render_to_response, render_to_string -import courseware.capa.calc import track.views from lxml import etree @@ -34,7 +33,8 @@ from util.cache import cache from util.views import accepts import courseware.content_parser as content_parser -import courseware.modules +#import courseware.modules +import xmodule log = logging.getLogger("mitx.courseware") @@ -184,7 +184,7 @@ def quickedit(request, id=None, qetemplate='quickedit.html',coursename=None): filestore = OSFS(settings.DATA_DIR + xp), #role = 'staff' if request.user.is_staff else 'student', # TODO: generalize this ) - instance=courseware.modules.get_module_class(module)(system, + instance=xmodule.get_module_class(module)(system, xml, id, state=None)