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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user