Skip to content

Commit ebd3c97

Browse files
authored
MCKIN-28611 - Nested blocks imports fix (#320)
2 parents b7f7a04 + d8ad55d commit ebd3c97

File tree

4 files changed

+8
-8
lines changed

4 files changed

+8
-8
lines changed

problem_builder/mentoring.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -335,9 +335,9 @@ def allowed_nested_blocks(self):
335335
"""
336336
additional_blocks = []
337337
try:
338-
from xmodule.video_module.video_module import VideoDescriptor
338+
from xmodule.video_module.video_module import VideoBlock
339339
additional_blocks.append(NestedXBlockSpec(
340-
VideoDescriptor, category='video', label=_(u"Video")
340+
VideoBlock, category='video', label=_(u"Video")
341341
))
342342
except ImportError:
343343
pass
@@ -358,7 +358,7 @@ def allowed_nested_blocks(self):
358358
pass
359359

360360
try:
361-
from ooyala_player import OoyalaPlayerBlock
361+
from ooyala_player.ooyala_player import OoyalaPlayerBlock
362362
additional_blocks.append(NestedXBlockSpec(
363363
OoyalaPlayerBlock, category='ooyala-player', label=_(u"Ooyala Player")
364364
))

problem_builder/step.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -136,9 +136,9 @@ def allowed_nested_blocks(self):
136136
"""
137137
additional_blocks = []
138138
try:
139-
from xmodule.video_module.video_module import VideoDescriptor
139+
from xmodule.video_module.video_module import VideoBlock
140140
additional_blocks.append(NestedXBlockSpec(
141-
VideoDescriptor, category='video', label=_(u"Video")
141+
VideoBlock, category='video', label=_(u"Video")
142142
))
143143
except ImportError:
144144
pass
@@ -151,7 +151,7 @@ def allowed_nested_blocks(self):
151151
pass
152152

153153
try:
154-
from ooyala_player import OoyalaPlayerBlock
154+
from ooyala_player.ooyala_player import OoyalaPlayerBlock
155155
additional_blocks.append(NestedXBlockSpec(
156156
OoyalaPlayerBlock, category='ooyala-player', label=_(u"Ooyala Player")
157157
))

problem_builder/tests/unit/utils.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ def assert_allowed_nested_blocks(self, block, message_blocks=[]):
6868
'xmodule.video_module': xmodule_mock.video_module,
6969
'xmodule.video_module.video_module': xmodule_mock.video_module.video_module,
7070
'imagemodal': Mock(),
71-
'ooyala_player': Mock(),
71+
'ooyala_player.ooyala_player': Mock(),
7272
}
7373
with patch.dict(modules, fake_modules):
7474
self.assertEqual(

setup.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828

2929
# Constants #########################################################
3030

31-
VERSION = '4.1.7'
31+
VERSION = '4.1.8'
3232

3333
# Functions #########################################################
3434

0 commit comments

Comments
 (0)