grouped_assignments.py - assignment-related tables¶
db.define_table(
"assignments",
Field("course", db.courses),
Field("name", "string"),
Field(
"points", "integer", default=0, notnull=True
), # max possible points on the assignment, cached sum of assignment_question points
Field(
"threshold_pct", "float"
), # threshold required to qualify for maximum points on the assignment; null means use actual points
Field("released", "boolean", default=False),
Field(
"allow_self_autograde", "boolean"
), # if True, when student clicks to autograde assignment, it calculates totals; otherwise it only scores individual questions but doesn't calculate score for the assignment
Field("description", "text"),
Field("duedate", "datetime"),
Field("enforce_due", "boolean"),
Field("visible", "boolean", default=False),
Field("is_timed", "boolean", default=False),
Field("is_peer", "boolean", default=False),
Field("current_index", "integer", default=0),
Field("time_limit", "integer"),
Field("from_source", "boolean", default=False),
Field("nofeedback", "boolean"),
Field("nopause", "boolean"),
Field("peer_async_visible", "boolean", default=False),
format="%(name)s",
migrate=bookserver_owned("assignments"),
)
db.define_table(
"grades",
This table records grades on whole assignments, not individual questions
guid for the student x assignment cell in the external gradebook
Guessing that the lis_outcome_url
length is actually inteded for this field, use that as its maximum length.
web service endpoint where you send signed xml messages to insert into gradebook; guid above will be one parameter you send in that xml; the actual grade and comment will be others
Per the LTI spec v1.1.1 in section 6, the maximum length of the lis_outcome_url
field is 1023 characters.
guid for the student x assignment cell in the external gradebook
web service endpoint where you send signed xml messages to insert into gradebook; guid above will be one parameter you send in that xml; the actual grade and comment will be others
question_grades¶
This table records grades on individual gradeable items
The ID of a record in the answer table (mchoice_answers, fitb_answers, etc.) that was graded.