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
This commit is contained in:
David Baumgold
2013-08-02 13:51:46 -04:00
parent 9634e222be
commit 8a95d7e6f0

View File

@@ -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):