Commit 6e9c320a by Piotr Mitros

Major bug -- using obsolete ID type in modx_render. Minor bug -- profile page broken

parent c9430659
......@@ -60,10 +60,8 @@ def modx_dispatch(request, module=None, dispatch=None, id=None):
ajax_url = '/modx/'+module+'/'+id+'/'
id_tag=courseware.modules.get_module_class(module.id_attribute)
# Grab the XML corresponding to the request from course.xml
xml = content_parser.module_xml(content_parser.course_file(request.user), module, id_tag, id)
xml = content_parser.module_xml(content_parser.course_file(request.user), module, 'id', id)
# Create the module
instance=courseware.modules.get_module_class(module)(xml,
......
......@@ -71,7 +71,7 @@ def profile(request):
if response.grade!=None:
correct=response.grade
total=courseware.modules.capa_module.LoncapaModule(etree.tostring(p), "id").max_score() # TODO: Add state. Not useful now, but maybe someday problems will have randomized max scores?
total=courseware.modules.capa_module.Module(etree.tostring(p), "id").max_score() # TODO: Add state. Not useful now, but maybe someday problems will have randomized max scores?
scores.append((int(correct),total, graded ))
......
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