From b5dfb8307d5e99075ed9f2f2f5cb75d8dca0cd27 Mon Sep 17 00:00:00 2001 From: Maxim Beder Date: Thu, 9 Jan 2025 21:32:33 +0100 Subject: [PATCH] refactor: remove graded property shim graded property method is going to be inherited by XBlocks from the InheritableFieldsMixin (used to be called InheritanceMixin). --- openedx/core/djangoapps/xblock/runtime/shims.py | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/openedx/core/djangoapps/xblock/runtime/shims.py b/openedx/core/djangoapps/xblock/runtime/shims.py index c306b82bdc8b..f12615ad7163 100644 --- a/openedx/core/djangoapps/xblock/runtime/shims.py +++ b/openedx/core/djangoapps/xblock/runtime/shims.py @@ -328,17 +328,6 @@ def system(self): ) return self.runtime - @property - def graded(self): - """ - Not sure what this is or how it's supposed to be set. Capa seems to - expect a 'graded' attribute to be present on itself. Possibly through - contentstore's update_section_grader_type() ? - """ - if self.scope_ids.block_type != 'problem': - raise AttributeError(".graded shim is only for capa") - return False - # Attributes defined by XModuleMixin and sometimes used by the LMS # Set sensible defaults. # If any of these are meant to be used in new stuff (are not deprecated)