Commit f95ecea9 by Don Mitchell

Temporary fix for runtime.resources_fs error

parent 655381b4
...@@ -196,3 +196,11 @@ class LmsModuleSystem(LmsHandlerUrls, ModuleSystem): # pylint: disable=abstract ...@@ -196,3 +196,11 @@ class LmsModuleSystem(LmsHandlerUrls, ModuleSystem): # pylint: disable=abstract
) )
services['fs'] = xblock.reference.plugins.FSService() services['fs'] = xblock.reference.plugins.FSService()
super(LmsModuleSystem, self).__init__(**kwargs) 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)
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