refactor: rename module -> block within xmodule
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user