Jump to navigation

Class: AttemptFile

AttemptFile

A file uploaded by the user. It should be an attempt data file produced by the Numbas exam runtime. This file is decoded, decrypted and parsed as JSON. The file is considered succesfully processed if all of these steps succeed.

Constructor

new AttemptFile()

Source:

Members

attempt_grouped_questions

For each question defined in the exam, an object relating it to the group and question index it appeared at in this attempt.

Source:

full_table_row

Data for the row corresponding to this attempt in the full data table.

Source:

question_table_row

Data for the row corresponding to this attempt in the question totals-only data table.

Source:

Methods

as_json()

Serialise this file to JSON to store in history.state.

Source:

(async) decrypt()

Decrypt and parse this file's contents.

Source:

remove()

Forget about this file - remove it from the list of uploaded files.

Source:

replace_file()

Replace the underlying file property with a new File object.

Source: