Skip to content

Commit

Permalink
temp: pylint
Browse files Browse the repository at this point in the history
  • Loading branch information
ormsbee committed Oct 17, 2024
1 parent 2e8d733 commit f2cad1c
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions openedx/core/djangoapps/xblock/runtime/learning_core_runtime.py
Original file line number Diff line number Diff line change
Expand Up @@ -331,6 +331,12 @@ def _get_component_from_usage_key(self, usage_key):
return component

def _get_component_version_from_block(self, block):
"""
Given an XBlock instance, return the Learning Core ComponentVersion.
This relies on our runtime setting the _runtime_requested_version
attribute on blocks that it fetches.
"""
usage_key = block.usage_key
component = self._get_component_from_usage_key(usage_key)

Expand All @@ -345,6 +351,12 @@ def _get_component_version_from_block(self, block):
return component_version

def _absolute_url_for_asset(self, component_version, asset_path):
"""
The full URL for a specific library asset in a ComponentVersion.
This does not check for whether the path actually exists–it just returns
where it would be if it did exist.
"""
# This function should return absolute URLs, so we need the site root.
site_root_url = get_xblock_app_config().get_site_root_url()

Expand Down

0 comments on commit f2cad1c

Please sign in to comment.