Make progress page work with pure xblocks

[LMS-2349]
This commit is contained in:
Calen Pennington
2014-03-17 10:45:14 -04:00
parent 290fd03566
commit a5498bcbd7
2 changed files with 10 additions and 11 deletions

View File

@@ -301,6 +301,16 @@ class XModuleMixin(XBlockMixin):
"""
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
def get_score(self):
@@ -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.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
def _translate(cls, key):
'VS[compat]'

View File

@@ -447,7 +447,6 @@ class ProgressPageTests(ModuleStoreTestCase):
self.section = ItemFactory(category='sequential', parent_location=self.chapter.location)
self.vertical = ItemFactory(category='vertical', parent_location=self.section.location)
@unittest.expectedFailure
def test_pure_ungraded_xblock(self):
ItemFactory(category='acid', parent_location=self.vertical.location)