Revert "refactor: reuse services and wrappers between XBlocks" (#32730)

This reverts commit 36cc415fc2.
This commit is contained in:
Piotr Surowiec
2023-07-13 16:05:34 +02:00
committed by GitHub
parent f6071490e8
commit c6bd98e51a
19 changed files with 247 additions and 253 deletions

View File

@@ -220,7 +220,7 @@ def _prepare_runtime_for_preview(request, block):
# Set up functions to modify the fragment produced by student_view
block.runtime.wrappers = wrappers
block.runtime.wrappers_asides = wrappers_asides
block.runtime._services.update(services) # pylint: disable=protected-access
block.runtime._runtime_services.update(services) # lint-amnesty, pylint: disable=protected-access
# xmodules can check for this attribute during rendering to determine if
# they are being rendered for preview (i.e. in Studio)