From ee8a4592111e8f7bf956d24e7824b36eb82d787b Mon Sep 17 00:00:00 2001 From: farhan Date: Tue, 26 Nov 2024 22:39:03 +0500 Subject: [PATCH] chore: change built class names --- xmodule/annotatable_block.py | 2 +- xmodule/capa_block.py | 2 +- xmodule/discussion_block.py | 1 + xmodule/html_block.py | 3 ++- xmodule/lti_block.py | 1 + xmodule/poll_block.py | 2 +- xmodule/video_block/video_block.py | 1 + xmodule/word_cloud_block.py | 1 + 8 files changed, 9 insertions(+), 4 deletions(-) diff --git a/xmodule/annotatable_block.py b/xmodule/annotatable_block.py index 033ec8eb66c2..1a111aae1c77 100644 --- a/xmodule/annotatable_block.py +++ b/xmodule/annotatable_block.py @@ -41,7 +41,7 @@ class _BuiltInAnnotatableBlock( """ Annotatable XBlock. """ - + __name__ = "AnnotatableBlock" is_extracted = False data = String( diff --git a/xmodule/capa_block.py b/xmodule/capa_block.py index bf13386ef1c5..93a26288c3c8 100644 --- a/xmodule/capa_block.py +++ b/xmodule/capa_block.py @@ -159,7 +159,7 @@ class _BuiltInProblemBlock( system is inspired. """ INDEX_CONTENT_TYPE = 'CAPA' - + __name__ = "ProblemBlock" is_extracted = False resources_dir = None diff --git a/xmodule/discussion_block.py b/xmodule/discussion_block.py index d1ae1bfdc38f..5b1c199f58d7 100644 --- a/xmodule/discussion_block.py +++ b/xmodule/discussion_block.py @@ -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 diff --git a/xmodule/html_block.py b/xmodule/html_block.py index c819d657cfe9..c015e5f62798 100644 --- a/xmodule/html_block.py +++ b/xmodule/html_block.py @@ -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"), @@ -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 diff --git a/xmodule/lti_block.py b/xmodule/lti_block.py index 7bea50bd6639..bb32099a1ddb 100644 --- a/xmodule/lti_block.py +++ b/xmodule/lti_block.py @@ -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 diff --git a/xmodule/poll_block.py b/xmodule/poll_block.py index 981ed7169f5e..978d5f81c8d3 100644 --- a/xmodule/poll_block.py +++ b/xmodule/poll_block.py @@ -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 diff --git a/xmodule/video_block/video_block.py b/xmodule/video_block/video_block.py index 6961a26ea175..ff0d3a5765c2 100644 --- a/xmodule/video_block/video_block.py +++ b/xmodule/video_block/video_block.py @@ -134,6 +134,7 @@ class _BuiltInVideoBlock( """ + __name__ = "VideoBlock" is_extracted = False has_custom_completion = True completion_mode = XBlockCompletionMode.COMPLETABLE diff --git a/xmodule/word_cloud_block.py b/xmodule/word_cloud_block.py index dae67175d5de..6fdf1c8207a2 100644 --- a/xmodule/word_cloud_block.py +++ b/xmodule/word_cloud_block.py @@ -57,6 +57,7 @@ class _BuiltInWordCloudBlock( # pylint: disable=abstract-method Word Cloud XBlock. """ + __name__ = "WordCloudBlock" is_extracted = False display_name = String(