From c70b80753ace62e2257a96be8c8e71b453cd1a63 Mon Sep 17 00:00:00 2001 From: ichuang Date: Mon, 28 May 2012 10:05:14 -0400 Subject: [PATCH] pass instance of LoncapaProblem in response checker context --- djangoapps/courseware/capa/capa_problem.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/djangoapps/courseware/capa/capa_problem.py b/djangoapps/courseware/capa/capa_problem.py index 89239597da..61d8e98d05 100644 --- a/djangoapps/courseware/capa/capa_problem.py +++ b/djangoapps/courseware/capa/capa_problem.py @@ -213,7 +213,7 @@ class LoncapaProblem(object): context = {'global_context':global_context} # save global context in here also context.update(global_context) # initialize context to have stuff in global_context context['__builtins__'] = globals()['__builtins__'] # put globals there also - context['I4xSystem'] = self.system + context['the_lcp'] = self # pass instance of LoncapaProblem in #for script in tree.xpath('/problem/script'): for script in tree.findall('.//script'):