CAT-SOOP API: catsoop.lti
Members
-
catsoop.lti.LTI_Consumer (
type, lines 197-275)Simple LTI tool consumer (useful for unit-tests of CAT-SOOP acting as an LTI tool provider)
-
catsoop.lti.lti4cs (
type, lines 38-100)LTI object representation for CAT-SOOP: validation and data receipt
-
catsoop.lti.lti4cs_response (
type, lines 103-191)LTI handler for responses from CAT-SOOP to tool consumer
-
catsoop.lti.serve_lti (
function, lines 281-387)Parameters:
context: dictionary, the context associated with this requestpath_info: list of URL path componentsenvironment: dictionary containing web server data, such as form inputdispatch_main: function of the same form ascatsoop.dispatch.main
-
catsoop.lti.update_lti_score (
function, lines 390-431)Send a score to an LTI endpoint.
Parameters:
lti_handler: an instance oflti4cscontaining the relevant data for this requestproblemstate: the contents of the currentproblemstatelog (a dictionary)name_map: a dictionary mapping question names to those questions' respective contexts (this is of the form generated by the default handler by looping overcs_problem_spec)