Make descriptorsystem inherit from Runtime - #567
Conversation
|
I would just include this in the PR that actually uses the render method. |
|
Fair enough - there it is. I imagine wrapping content around a constant function while we don't yet make the switch to the wrap_xmodule alternative is the way to go? |
There was a problem hiding this comment.
I think, to keep things separated the way we want them to end up, I would set component.get_html = wrap_xmodule(component.get_html, component, 'xmodule_edit.html') before the call to render_to_response and then 'editor': component.runtime.render(component, None, 'studio_view').content in the call to render_to_response. That way, when we later replace wrap_xmodule with an implementation of wrap_child in the runtime, we'll only have to change the line that replaces get_html, rather than having to rewrite both places.
|
@dianakhuang ? Cale's out |
|
I would suggest that @nedbat review this instead of me. |
|
👍 |
1 similar comment
|
👍 |
Conflicts: cms/djangoapps/contentstore/views/preview.py
Make descriptorsystem inherit from Runtime
…dulestores Eagerly load modulestores on server startup
Hash update: Group Project V2
…attutor_sha Update StatTutor sha for 1/13 code
* FIX: key error * Proversity/development (openedx#546) * removing setting configure and rather setting setting module to lms * try sys convert * FIX: key error * add changes to development branch (openedx#538) * add changes to development branch * comments * remove mig file * [ci skip] switcching to proversity fork of social auths * [ci skip] fixing encoding * [Development] Update clear course cache (openedx#542) * FIX: key error * update clear-course-cache to accept multiple courses * [ci skip] reverting conftest * Proversity/development (openedx#558) ENH: bulk grades api to be granular ENH: course order by ADD: harambee custom backend SSO * dynamically update release dates
* FIX: key error * Proversity/development (#546) * removing setting configure and rather setting setting module to lms * try sys convert * FIX: key error * add changes to development branch (#538) * add changes to development branch * comments * remove mig file * [ci skip] switcching to proversity fork of social auths * [ci skip] fixing encoding * [Development] Update clear course cache (#542) * FIX: key error * update clear-course-cache to accept multiple courses * [ci skip] reverting conftest * Proversity/development (#558) ENH: bulk grades api to be granular ENH: course order by ADD: harambee custom backend SSO * dynamically update release dates
JU-6: add support for openedx-events
Co-authored-by: SaadYousaf <saadyousaf@A006-00314.local>
Descriptors also need a runtime.render method.
Switch to studio_view
[STUD-515]