Skip to content
Snippets Groups Projects
Commit 51cd7566 authored by Calen Pennington's avatar Calen Pennington
Browse files

Merge pull request #119 from MITx/victor/render-path-cleanup

put lambda function back in, as requested during code review
parents 4ce08cc3 7e73f0ed
No related branches found
No related tags found
No related merge requests found
......@@ -164,11 +164,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,
request = request,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment