refactor: rename HiddenDescriptor to HiddenBlock

This also handles the AttributeError in the default XBlock class fallback.
This commit is contained in:
Agrendalath
2022-12-19 16:45:57 +01:00
committed by Piotr Surowiec
parent 3115db5836
commit ae1dcbea74
25 changed files with 45 additions and 48 deletions

View File

@@ -13,7 +13,7 @@ from xmodule.x_module import (
@XBlock.needs("i18n")
class HiddenDescriptor(
class HiddenBlock(
RawMixin,
XmlMixin,
XModuleToXBlockMixin,
@@ -22,9 +22,6 @@ class HiddenDescriptor(
"""
XBlock class loaded by the runtime when another XBlock type has been disabled
or an unknown XBlock type is included in a course import.
The class name includes 'Descriptor' because this used to be an XModule and the class path is specified in the
modulestore config in a number of places.
"""
HIDDEN = True
has_author_view = True