Commit c70b8075 by ichuang

pass instance of LoncapaProblem in response checker context

parent 9dd5cfa2
......@@ -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'):
......
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