put lambda function back in, as requested during code review

This commit is contained in:
Victor Shnayder
2012-06-18 13:12:47 -04:00
parent 96cbb3d33b
commit 7e73f0ede0

View File

@@ -162,11 +162,10 @@ def get_module(user, request, module_xml, student_module_cache, position=None):
# Setup system context for module instance
ajax_url = settings.MITX_ROOT_URL + '/modx/' + module_type + '/' + module_id + '/'
def render_x_module_wrapper(module_xml):
return render_x_module(user, request, module_xml, student_module_cache, position)
system = I4xSystem(track_function = make_track_function(request),
render_function = render_x_module_wrapper,
render_function = lambda xml: render_x_module(
user, request, xml, student_module_cache, position),
render_template = render_to_string,
ajax_url = ajax_url,
filestore = OSFS(data_root),