Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions cms/djangoapps/contentstore/views/tests/test_course_index.py
Original file line number Diff line number Diff line change
Expand Up @@ -314,7 +314,7 @@ def test_empty_content_type(self):
self.assertContains(response, self.SUCCESSFUL_RESPONSE)
self.assertEqual(response.status_code, 200) # noqa: PT009

@mock.patch('xmodule.html_block.HtmlBlock.index_dictionary')
@mock.patch('xblock_html.HtmlBlock.index_dictionary')
def test_reindex_course_search_index_error(self, mock_index_dictionary):
"""
Test json response with mocked error data for html
Expand Down Expand Up @@ -377,7 +377,7 @@ def test_reindex_video_error_json_responses(self, mock_index_dictionary):
with self.assertRaises(SearchIndexingError): # noqa: PT027
reindex_course_and_check_access(self.course.id, self.user)

@mock.patch('xmodule.html_block.HtmlBlock.index_dictionary')
@mock.patch('xblock_html.HtmlBlock.index_dictionary')
def test_reindex_html_error_json_responses(self, mock_index_dictionary):
"""
Test json response with mocked error data for html
Expand Down Expand Up @@ -487,7 +487,7 @@ def test_indexing_video_error_responses(self, mock_index_dictionary):
with self.assertRaises(SearchIndexingError): # noqa: PT027
CoursewareSearchIndexer.do_course_reindex(modulestore(), self.course.id)

@mock.patch('xmodule.html_block.HtmlBlock.index_dictionary')
@mock.patch('xblock_html.HtmlBlock.index_dictionary')
def test_indexing_html_error_responses(self, mock_index_dictionary):
"""
Test do_course_reindex response with mocked error data for html
Expand Down
3 changes: 0 additions & 3 deletions cms/templates/container_chromeless.html
Original file line number Diff line number Diff line change
Expand Up @@ -94,9 +94,6 @@
<%static:include path="js/${template_name}.underscore" />
</script>
% endfor
<script type="text/template" id="image-modal-tpl">
<%static:include path="common/templates/image-modal.underscore" />
</script>
<link rel="stylesheet" type="text/css" href="${static.url('js/vendor/timepicker/jquery.timepicker.css')}" />
</head>

Expand Down
3 changes: 0 additions & 3 deletions cms/templates/container_editor.html
Original file line number Diff line number Diff line change
Expand Up @@ -73,9 +73,6 @@
<%static:include path="js/${template_name}.underscore" />
</script>
% endfor
<script type="text/template" id="image-modal-tpl">
<%static:include path="common/templates/image-modal.underscore" />
</script>

<link rel="stylesheet" type="text/css" href="${static.url('js/vendor/timepicker/jquery.timepicker.css')}" />
% for _, resource in resources:
Expand Down
3 changes: 0 additions & 3 deletions cms/templates/library.html
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,6 @@
<%static:include path="js/${template_name}.underscore" />
</script>
% endfor
<script type="text/template" id="image-modal-tpl">
<%static:include path="common/templates/image-modal.underscore" />
</script>
</%block>

<%block name="page_bundle">
Expand Down
42 changes: 0 additions & 42 deletions common/static/common/templates/image-modal.underscore

This file was deleted.

6 changes: 6 additions & 0 deletions lms/djangoapps/courseware/block_render.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@
)
from lms.djangoapps.courseware.model_data import DjangoKeyValueStore, FieldDataCache
from lms.djangoapps.courseware.services import UserStateService
from lms.djangoapps.edxnotes.wrappers import wrap_with_edxnotes
from lms.djangoapps.grades.api import GradesUtilService
from lms.djangoapps.lms_xblock.field_data import LmsFieldData
from lms.djangoapps.lms_xblock.runtime import UserTagsService, lms_applicable_aside_types, lms_wrappers_aside
Expand Down Expand Up @@ -560,6 +561,11 @@ def inner_get_block(block: XBlock) -> XBlock | None:
if settings.LICENSING:
block_wrappers.append(partial(wrap_with_license, mako_service=mako_service))

# TEMPORARY HACK to keep edXNotes working. See the docstring of wrap_with_edxnotes.
# This goes before wrap_xblock so that the edXNotes wrapper ends up inside of the XBlock's div.
if settings.ENABLE_EDXNOTES:
block_wrappers.append(partial(wrap_with_edxnotes, user, course))

# Wrap the output display in a single div to allow for the XBlock
# javascript to be bound correctly
if wrap_xblock_display is True:
Expand Down
3 changes: 2 additions & 1 deletion lms/djangoapps/courseware/tests/test_block_render.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@
Mixologist, # pylint: disable=wrong-import-order
)
from xblock.test.tools import TestRuntime # pylint: disable=wrong-import-order
from xblock_html import HtmlBlock
from xblock_problem.capa.testing.response_xml_factory import (
OptionResponseXMLFactory, # pylint: disable=reimported
)
Expand Down Expand Up @@ -99,7 +100,7 @@
from openedx.core.lib.url_utils import quote_slashes
from xmodule.capa_block import ProblemBlock
from xmodule.contentstore.django import contentstore
from xmodule.html_block import AboutBlock, CourseInfoBlock, HtmlBlock, StaticTabBlock
from xmodule.html_block import AboutBlock, CourseInfoBlock, StaticTabBlock
from xmodule.lti_block import LTIBlock
from xmodule.modulestore import ModuleStoreEnum
from xmodule.modulestore.django import XBlockI18nService, modulestore
Expand Down
69 changes: 0 additions & 69 deletions lms/djangoapps/edxnotes/decorators.py

This file was deleted.

Loading
Loading