No longer persist XModule templates
Instead, we use XModule field default values when creating an empty XModule. Driven by this use case, we also allow for XModules to be created in memory without being persisted to the database at all. This necessitates a change to the Modulestore api, replacing clone_item with create_draft and save_xmodule.
Showing
- CHANGELOG.rst 7 additions, 0 deletionsCHANGELOG.rst
- README.md 0 additions, 1 deletionREADME.md
- cms/djangoapps/contentstore/course_info_model.py 2 additions, 2 deletionscms/djangoapps/contentstore/course_info_model.py
- cms/djangoapps/contentstore/features/common.py 1 addition, 1 deletioncms/djangoapps/contentstore/features/common.py
- cms/djangoapps/contentstore/features/component_settings_editor_helpers.py 9 additions, 7 deletions...ontentstore/features/component_settings_editor_helpers.py
- cms/djangoapps/contentstore/features/discussion-editor.py 2 additions, 2 deletionscms/djangoapps/contentstore/features/discussion-editor.py
- cms/djangoapps/contentstore/features/html-editor.py 1 addition, 1 deletioncms/djangoapps/contentstore/features/html-editor.py
- cms/djangoapps/contentstore/features/problem-editor.py 1 addition, 1 deletioncms/djangoapps/contentstore/features/problem-editor.py
- cms/djangoapps/contentstore/features/studio-overview-togglesection.py 4 additions, 4 deletions...ps/contentstore/features/studio-overview-togglesection.py
- cms/djangoapps/contentstore/features/video.py 1 addition, 1 deletioncms/djangoapps/contentstore/features/video.py
- cms/djangoapps/contentstore/management/commands/update_templates.py 0 additions, 10 deletions...apps/contentstore/management/commands/update_templates.py
- cms/djangoapps/contentstore/module_info_model.py 11 additions, 13 deletionscms/djangoapps/contentstore/module_info_model.py
- cms/djangoapps/contentstore/tests/test_contentstore.py 45 additions, 65 deletionscms/djangoapps/contentstore/tests/test_contentstore.py
- cms/djangoapps/contentstore/tests/test_course_settings.py 1 addition, 0 deletionscms/djangoapps/contentstore/tests/test_course_settings.py
- cms/djangoapps/contentstore/tests/test_i18n.py 0 additions, 1 deletioncms/djangoapps/contentstore/tests/test_i18n.py
- cms/djangoapps/contentstore/tests/test_item.py 192 additions, 4 deletionscms/djangoapps/contentstore/tests/test_item.py
- cms/djangoapps/contentstore/tests/utils.py 0 additions, 1 deletioncms/djangoapps/contentstore/tests/utils.py
- cms/djangoapps/contentstore/utils.py 4 additions, 4 deletionscms/djangoapps/contentstore/utils.py
- cms/djangoapps/contentstore/views/checklist.py 2 additions, 4 deletionscms/djangoapps/contentstore/views/checklist.py
- cms/djangoapps/contentstore/views/component.py 42 additions, 23 deletionscms/djangoapps/contentstore/views/component.py
Loading
Please register or sign in to comment