Skip to main content

Module public_course

Module public_course 

Source
Expand description

The read_public_course tool.

Structsยง

ReadPublicCourse
Reads another courseโ€™s published material as reference, as the course site shows it to the caller.
Reading ๐Ÿ”’
The course being read, and who reads it.
Target ๐Ÿ”’
The course and page a call names.

Constantsยง

REFERENCE_NOTICE ๐Ÿ”’

Functionsยง

add_shown_tasks ๐Ÿ”’
Adds to exercises_by_id the tasks the course site shows the caller before answering, with their instructions and public specs, for the exercises ids.
block_size ๐Ÿ”’
A blockโ€™s size counts the exercises it brings along.
blocks_exercise_ids ๐Ÿ”’
exercise_block_ids ๐Ÿ”’
Ids of the exercise blocks in block and its inner blocks, in page order.
invalid ๐Ÿ”’
listed_page ๐Ÿ”’
normalize_path ๐Ÿ”’
path in the stored form of page paths: no query or fragment, a leading / and no trailing one. None when nothing is left, so an empty path reads the outline, not the front page.
open_public_course ๐Ÿ”’
The course course_slug names, if the course site lets the caller open it.
outline ๐Ÿ”’
outline_chapter ๐Ÿ”’
page ๐Ÿ”’
parse_target ๐Ÿ”’
take_within ๐Ÿ”’
Takes items while they fit budget_bytes, at least one, measuring none past the last taken; true when items were left over.