Use xblock render shortcuts

This commit is contained in:
Calen Pennington
2013-10-04 16:47:03 -04:00
parent d785b1e213
commit 658810a94f
24 changed files with 75 additions and 72 deletions

View File

@@ -81,7 +81,7 @@ def preview_component(request, location):
return render_to_response('component.html', {
'preview': get_preview_html(request, component, 0),
'editor': component.runtime.render(component, None, 'studio_view').content,
'editor': component.render('studio_view').content,
})
@@ -157,4 +157,4 @@ def get_preview_html(request, descriptor, idx):
specified by the descriptor and idx.
"""
module = load_preview_module(request, str(idx), descriptor)
return module.runtime.render(module, None, "student_view").content
return module.render("student_view").content