Skip to content

Commit 28c7617

Browse files
committed
chore: Remove XModuleMixin legacy attributes from word cloud
1 parent 3e9fe3f commit 28c7617

1 file changed

Lines changed: 19 additions & 19 deletions

File tree

xblocks_contrib/word_cloud/word_cloud.py

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -99,25 +99,25 @@ class WordCloudBlock(StudioEditableXBlockMixin, LegacyXmlMixin, XBlock):
9999
scope=Scope.user_state_summary
100100
)
101101

102-
@property
103-
def category(self):
104-
return self.scope_ids.block_type
105-
106-
@property
107-
def url_name(self):
108-
return self.location.block_id
109-
110-
@property
111-
def location(self):
112-
return self.scope_ids.usage_id
113-
114-
@location.setter
115-
def location(self, value):
116-
assert isinstance(value, UsageKey)
117-
self.scope_ids = self.scope_ids._replace(
118-
def_id=value, # Note: assigning a UsageKey as def_id is OK in old mongo / import system but wrong in split
119-
usage_id=value,
120-
)
102+
# @property
103+
# def category(self):
104+
# return self.scope_ids.block_type
105+
106+
# @property
107+
# def url_name(self):
108+
# return self.location.block_id
109+
110+
# @property
111+
# def location(self):
112+
# return self.scope_ids.usage_id
113+
114+
# @location.setter
115+
# def location(self, value):
116+
# assert isinstance(value, UsageKey)
117+
# self.scope_ids = self.scope_ids._replace(
118+
# def_id=value, # Note: assigning a UsageKey as def_id is OK in old mongo / import system but wrong in split
119+
# usage_id=value,
120+
# )
121121

122122
@staticmethod
123123
def workbench_scenarios():

0 commit comments

Comments
 (0)