Skip to content

Commit 610d236

Browse files
committed
chore: address PR changes
1 parent c57e3b0 commit 610d236

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

xblocks_contrib/common/xml_utils.py

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
1-
"""Shared utilities for pointer tag handling across XBlocks.
2-
3-
This module centralizes detection, path computation, and attribute application
1+
"""This module centralizes detection, path computation, and attribute application
42
for OLX "pointer" tags used by XBlocks during import/export.
53
Also provides helpers to load definition XML files referenced by pointer tags.
64
@@ -133,10 +131,10 @@ def own_metadata(block):
133131

134132

135133
def apply_pointer_attributes(node, block) -> None:
136-
"""Apply required pointer attributes to the export node for a block.
134+
"""Apply required pointer attributes to the relevant node for a block.
137135
138-
Sets "url_name" for all blocks. For course blocks, also sets "org" and
139-
"course" attributes.
136+
Sets "url_name" for all blocks. For course blocks, additionally assigns
137+
"org" and "course" attributes.
140138
"""
141139
if not node.get("url_name"):
142140
node.set("url_name", block.url_name)

0 commit comments

Comments
 (0)