Commit a5498bcb by Calen Pennington

Make progress page work with pure xblocks

[LMS-2349]
parent 290fd035
...@@ -301,6 +301,16 @@ class XModuleMixin(XBlockMixin): ...@@ -301,6 +301,16 @@ class XModuleMixin(XBlockMixin):
""" """
return self.icon_class return self.icon_class
def has_dynamic_children(self):
"""
Returns True if this descriptor has dynamic children for a given
student when the module is created.
Returns False if the children of this descriptor are the same
children that the module will return for any student.
"""
return False
# Functions used in the LMS # Functions used in the LMS
def get_score(self): def get_score(self):
...@@ -657,16 +667,6 @@ class XModuleDescriptor(XModuleMixin, HTMLSnippet, ResourceTemplates, XBlock): ...@@ -657,16 +667,6 @@ class XModuleDescriptor(XModuleMixin, HTMLSnippet, ResourceTemplates, XBlock):
self.edited_by = self.edited_on = self.previous_version = self.update_version = self.definition_locator = None self.edited_by = self.edited_on = self.previous_version = self.update_version = self.definition_locator = None
self.xmodule_runtime = None self.xmodule_runtime = None
def has_dynamic_children(self):
"""
Returns True if this descriptor has dynamic children for a given
student when the module is created.
Returns False if the children of this descriptor are the same
children that the module will return for any student.
"""
return False
@classmethod @classmethod
def _translate(cls, key): def _translate(cls, key):
'VS[compat]' 'VS[compat]'
......
...@@ -447,7 +447,6 @@ class ProgressPageTests(ModuleStoreTestCase): ...@@ -447,7 +447,6 @@ class ProgressPageTests(ModuleStoreTestCase):
self.section = ItemFactory(category='sequential', parent_location=self.chapter.location) self.section = ItemFactory(category='sequential', parent_location=self.chapter.location)
self.vertical = ItemFactory(category='vertical', parent_location=self.section.location) self.vertical = ItemFactory(category='vertical', parent_location=self.section.location)
@unittest.expectedFailure
def test_pure_ungraded_xblock(self): def test_pure_ungraded_xblock(self):
ItemFactory(category='acid', parent_location=self.vertical.location) ItemFactory(category='acid', parent_location=self.vertical.location)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment