CAT-SOOP API: catsoop.lti

LTI Tool Provider interface

View Source

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 request
    • path_info: list of URL path components
    • environment: dictionary containing web server data, such as form input
    • dispatch_main: function of the same form as catsoop.dispatch.main

 

  • catsoop.lti.update_lti_score (function, lines 390-431)

    Send a score to an LTI endpoint.

    Parameters:

    • lti_handler: an instance of lti4cs containing the relevant data for this request
    • problemstate: the contents of the current problemstate log (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 over cs_problem_spec)