From d879db5e10818e82ea8613e2e5d355b424a2b704 Mon Sep 17 00:00:00 2001 From: Prem Sichanugrist Date: Thu, 10 May 2012 19:05:55 -0400 Subject: [PATCH] Do not double-append the XML path in caps module This fixes the bug in answers reset feature --- djangoapps/courseware/modules/capa_module.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/djangoapps/courseware/modules/capa_module.py b/djangoapps/courseware/modules/capa_module.py index 5c2f6be5c3..2fa66f0049 100644 --- a/djangoapps/courseware/modules/capa_module.py +++ b/djangoapps/courseware/modules/capa_module.py @@ -369,8 +369,7 @@ class Module(XModule): self.lcp.questions=dict() # Detailed info about questions in problem instance. TODO: Should be by id and not lid. self.lcp.seed=None - filename="problems/"+self.filename+".xml" - self.lcp=LoncapaProblem(self.filestore.open(filename), self.item_id, self.lcp.get_state()) + self.lcp=LoncapaProblem(self.filestore.open(self.filename), self.item_id, self.lcp.get_state()) event_info['new_state']=self.lcp.get_state() self.tracker('reset_problem', event_info)