Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions xblock/runtime.py
Original file line number Diff line number Diff line change
Expand Up @@ -624,6 +624,18 @@ def load_aside_type(self, aside_type):
"""
return XBlockAside.load_class(aside_type, select=self.select)

def load_block_type_with_mixins(self, block_type):
"""
Returns a subclass of :class:`.XBlock` that corresponds to the specified `block_type` plus its `mixins`.
"""
return self.mixologist.mix(self.load_block_type(block_type))

def load_aside_type_with_mixins(self, aside_type):
"""
Returns a subclass of :class:`.XBlockAside` that corresponds to the specified `aside_type`.
"""
return self.mixologist.mix(self.load_aside_type(aside_type))

# pylint: disable=keyword-arg-before-vararg
def construct_xblock(self, block_type, scope_ids, field_data=None, *args, **kwargs):
r"""
Expand Down
Loading