Remove deprecated SingleSectionGrader. TNL-5987 Remove display_name and module_id from Scores objects Update CourseGradeFactory.__init__ to not be user-specific Update some callers to use CourseGrade class instead of "summary" dict Remove no longer needed course_grades.py module. Renamed django signal from GRADES_UPDATED to COURSE_GRADE_CHANGED
15 lines
605 B
Python
15 lines
605 B
Python
"""
|
|
This module contains all signals.
|
|
"""
|
|
|
|
from django.dispatch import Signal
|
|
|
|
|
|
# Signal that fires when a user is graded
|
|
COURSE_GRADE_CHANGED = Signal(providing_args=["user", "course_grade", "course_key", "deadline"])
|
|
|
|
# Signal that fires when a user is awarded a certificate in a course (in the certificates django app)
|
|
# TODO: runtime coupling between apps will be reduced if this event is changed to carry a username
|
|
# rather than a User object; however, this will require changes to the milestones and badges APIs
|
|
COURSE_CERT_AWARDED = Signal(providing_args=["user", "course_key", "mode", "status"])
|