Convert VerticalModule/VerticalDescriptor to a pure XBlock: VerticalBlock
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
# Same as vertical,
|
||||
# But w/o css delimiters between children
|
||||
|
||||
from xmodule.vertical_module import VerticalModule, VerticalDescriptor
|
||||
from xmodule.vertical_block import VerticalBlock
|
||||
from pkg_resources import resource_string
|
||||
|
||||
# HACK: This shouldn't be hard-coded to two types
|
||||
@@ -9,14 +9,8 @@ from pkg_resources import resource_string
|
||||
class_priority = ['video', 'problem']
|
||||
|
||||
|
||||
class WrapperModule(VerticalModule):
|
||||
''' Layout module for laying out submodules vertically w/o css delimiters'''
|
||||
|
||||
has_children = True
|
||||
css = {'scss': [resource_string(__name__, 'css/wrapper/display.scss')]}
|
||||
|
||||
|
||||
class WrapperDescriptor(VerticalDescriptor):
|
||||
module_class = WrapperModule
|
||||
|
||||
has_children = True
|
||||
class WrapperBlock(VerticalBlock):
|
||||
'''
|
||||
Layout block for laying out sub-blocks vertically *w/o* css delimiters.
|
||||
'''
|
||||
pass
|
||||
|
||||
Reference in New Issue
Block a user