Skip to content

Commit

Permalink
chore: change built class names
Browse files Browse the repository at this point in the history
  • Loading branch information
farhan committed Nov 26, 2024
1 parent 948922c commit ee8a459
Show file tree
Hide file tree
Showing 8 changed files with 9 additions and 4 deletions.
2 changes: 1 addition & 1 deletion xmodule/annotatable_block.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ class _BuiltInAnnotatableBlock(
"""
Annotatable XBlock.
"""

__name__ = "AnnotatableBlock"
is_extracted = False

data = String(
Expand Down
2 changes: 1 addition & 1 deletion xmodule/capa_block.py
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ class _BuiltInProblemBlock(
system is inspired.
"""
INDEX_CONTENT_TYPE = 'CAPA'

__name__ = "ProblemBlock"
is_extracted = False

resources_dir = None
Expand Down
1 change: 1 addition & 0 deletions xmodule/discussion_block.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ class _BuiltInDiscussionXBlock(XBlock, StudioEditableXBlockMixin,
"""
Provides a discussion forum that is inline with other content in the courseware.
"""
__name__ = "DiscussionXBlock"
is_extracted = False
completion_mode = XBlockCompletionMode.EXCLUDED

Expand Down
3 changes: 2 additions & 1 deletion xmodule/html_block.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,6 @@ class HtmlBlockMixin( # lint-amnesty, pylint: disable=abstract-method
The HTML XBlock mixin.
This provides the base class for all Html-ish blocks (including the HTML XBlock).
"""
is_extracted = False

display_name = String(
display_name=_("Display Name"),
Expand Down Expand Up @@ -361,6 +360,8 @@ class _BuiltInHtmlBlock(HtmlBlockMixin): # lint-amnesty, pylint: disable=abstra
This is the actual HTML XBlock.
Nothing extra is required; this is just a wrapper to include edxnotes support.
"""
__name__ = "HtmlBlock"
is_extracted = False


class AboutFields: # lint-amnesty, pylint: disable=missing-class-docstring
Expand Down
1 change: 1 addition & 0 deletions xmodule/lti_block.py
Original file line number Diff line number Diff line change
Expand Up @@ -365,6 +365,7 @@ class _BuiltInLTIBlock(
Otherwise error message from LTI provider is generated.
"""
__name__ = "LTIBlock"
is_extracted = False
resources_dir = None
uses_xmodule_styles_setup = True
Expand Down
2 changes: 1 addition & 1 deletion xmodule/poll_block.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ class _BuiltInPollBlock(
XModuleMixin,
): # pylint: disable=abstract-method
"""Poll Block"""

__name__ = "PollBlock"
is_extracted = False

# Name of poll to use in links to this poll
Expand Down
1 change: 1 addition & 0 deletions xmodule/video_block/video_block.py
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,7 @@ class _BuiltInVideoBlock(
<source src=".../mit-3091x/M-3091X-FA12-L21-3_100.ogv"/>
</video>
"""
__name__ = "VideoBlock"
is_extracted = False
has_custom_completion = True
completion_mode = XBlockCompletionMode.COMPLETABLE
Expand Down
1 change: 1 addition & 0 deletions xmodule/word_cloud_block.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ class _BuiltInWordCloudBlock( # pylint: disable=abstract-method
Word Cloud XBlock.
"""

__name__ = "WordCloudBlock"
is_extracted = False

display_name = String(
Expand Down

0 comments on commit ee8a459

Please sign in to comment.