Commit 8a95d7e6 by David Baumgold

XBlock integration: replaced `get_html` with `runtime.render()`

Currently calls the same machinery, but re-routes the logic in preparation of
deeper integration with XBlock
parent 9634e222
......@@ -165,7 +165,7 @@ def load_preview_module(request, preview_id, descriptor):
def get_preview_html(request, descriptor, idx):
module = load_preview_module(request, str(idx), descriptor)
return module.get_html()
return module.runtime.render(module, None, "student_view")
def get_module_previews(request, descriptor):
......
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