Temporary fix for runtime.resources_fs error

This commit is contained in:
Don Mitchell
2014-10-21 13:55:29 -04:00
parent 655381b4d1
commit f95ecea9a9

View File

@@ -196,3 +196,11 @@ class LmsModuleSystem(LmsHandlerUrls, ModuleSystem): # pylint: disable=abstract
)
services['fs'] = xblock.reference.plugins.FSService()
super(LmsModuleSystem, self).__init__(**kwargs)
# backward compatibility fix for callers not knowing this is a ModuleSystem v DescriptorSystem
@property
def resources_fs(self):
"""
Return what would be the resources_fs on a DescriptorSystem
"""
return getattr(self, 'filestore', None)