refactor: deprecate static_url argument from ModuleSystem

This argument was officially used only by the ProblemBlock.
If you need to get the base URL for static assets in your XBlock, please use
`settings.STATIC_URL` directly, instead of `runtime.STATIC_URL`.
This commit is contained in:
Agrendalath
2022-06-25 23:05:09 +02:00
committed by Piotr Surowiec
parent 9f30fece9a
commit 668683559b
8 changed files with 22 additions and 23 deletions

View File

@@ -630,7 +630,6 @@ class ProblemBlock(
render_template=None,
resources_fs=self.runtime.resources_fs,
seed=None,
STATIC_URL=None,
xqueue=None,
matlab_api_key=None,
)
@@ -691,7 +690,6 @@ class ProblemBlock(
render_template=None,
resources_fs=self.runtime.resources_fs,
seed=1,
STATIC_URL=None,
xqueue=None,
matlab_api_key=None,
)
@@ -839,7 +837,6 @@ class ProblemBlock(
render_template=self.runtime.service(self, 'mako').render_template,
resources_fs=self.runtime.resources_fs,
seed=seed, # Why do we do this if we have self.seed?
STATIC_URL=self.runtime.STATIC_URL,
xqueue=self.runtime.service(self, 'xqueue'),
matlab_api_key=self.matlab_api_key
)