Accreditations - UniMOOC/AAClassroom GitHub Wiki
This module is split in two parts: BadgeUP (the external accreditation service) and the GCB module.
GCB Module
The module can be found on modules.um_badges
. In the service.py file we can find two classes Badges
and Openbadges
.
In the Badges
service we will find all the method to handle the internal accreditations. If you want to give a badge to a student you call Badges.give_badge_to_student(student, badge_id)
, if you want to check if a student has a given badge you call Badges.student_has_badge(student, badge_id)
and so on.
Each time you call give_badge_to_student
a deferred task will spawn to make an API call to the external service and update the internal status of the issued badge with the response.