refactor: rename module -> block within xmodule

This commit is contained in:
0x29a
2022-12-28 17:05:49 +01:00
committed by Agrendalath
parent e348a8118d
commit a027f36724
73 changed files with 1141 additions and 1143 deletions

View File

@@ -16,7 +16,7 @@ class StudioEditableBlock(XBlockMixin):
def render_children(self, context, fragment, can_reorder=False, can_add=False):
"""
Renders the children of the module with HTML appropriate for Studio. If can_reorder is True,
Renders the children of the block with HTML appropriate for Studio. If can_reorder is True,
then the children will be rendered to support drag and drop.
"""
contents = []
@@ -43,7 +43,7 @@ class StudioEditableBlock(XBlockMixin):
@staticmethod
def get_preview_view_name(block):
"""
Helper method for getting preview view name (student_view or author_view) for a given module.
Helper method for getting preview view name (student_view or author_view) for a given block.
"""
return AUTHOR_VIEW if has_author_view(block) else STUDENT_VIEW