/
githubmirror
/
edx-platform
Обзор
Документация
Войти
/
githubmirror
/
edx-platform
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
release-ulmo
common/djangoapps/static_replace/wrapper.py
12 строк
493 B
Agrendalath
feat!: remove block handling from runtime initialization of ReplaceURLService
21 июн 2023, 21:28
21 июн 2023, 21:28
71fee4a
Код
Авторство
О чём код?
""" Wrapper function to replace static/course/jump-to-id URLs in XBlock to absolute URLs """ from openedx.core.lib.xblock_utils import wrap_fragment def replace_urls_wrapper(block, view, frag, context, replace_url_service, static_replace_only=False): # pylint: disable=unused-argument """ Replace any static/course/jump-to-id URLs in XBlock to absolute URLs. """ return wrap_fragment(frag, replace_url_service(xblock=block).replace_urls(frag.content, static_replace_only))