refactor: deprecate node_path attribute of ModuleSystem (#30447)

The node_path attribute & constructor argument of the ModuleSystem is
deprecated without any replacement service or fallback as there doesn't
seem to be any core blocks using it.

It also removes the references to node_path from the LMS settings, the
LoncapaModuleSystem and the XBlock runtime shim.

Co-authored-by: Agrendalath <piotr@surowiec.it>
This commit is contained in:
Arunmozhi
2022-06-09 02:06:59 +10:00
committed by GitHub
parent 22e510d69b
commit c54d8a81bf
9 changed files with 13 additions and 32 deletions

View File

@@ -145,16 +145,6 @@ class RuntimeShim:
)
return self.resources_fs
@property
def node_path(self):
"""
Get the path to Node.js
Seems only to be used by capa. Remove this if capa can be refactored.
"""
# TODO: Refactor capa to access this directly, don't bother the runtime. Then remove it from here.
return getattr(settings, 'NODE_PATH', None) # Only defined in the LMS
def render_template(self, template_name, dictionary, namespace='main'):
"""
Render a mako template