From 718499d7933ed2684491c95e8a5d2dff203fdd22 Mon Sep 17 00:00:00 2001 From: Bridger Maxwell Date: Tue, 7 Aug 2012 18:37:27 -0400 Subject: [PATCH] Fix test failure from recent commit. --- common/lib/xmodule/xmodule/capa_module.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/common/lib/xmodule/xmodule/capa_module.py b/common/lib/xmodule/xmodule/capa_module.py index 3fedc46715..3563e23611 100644 --- a/common/lib/xmodule/xmodule/capa_module.py +++ b/common/lib/xmodule/xmodule/capa_module.py @@ -141,7 +141,7 @@ class CapaModule(XModule): def lcp(self): if self.rerandomize == 'never': seed = 1 - elif self.rerandomize == "per_student" and hasattr(system, 'id'): + elif self.rerandomize == "per_student" and hasattr(self.system, 'id'): seed = system.id else: seed = None @@ -167,7 +167,7 @@ class CapaModule(XModule): (self.location.url(), msg)) return LoncapaProblem( problem_text, self.location.html_id(), - instance_state, seed=seed, system=self.system) + self._instance_state, seed=seed, system=self.system) else: # add extra info and raise raise Exception(msg), None, sys.exc_info()[2]