Certificates: URL endpoint for cert gen
* API endpoint for certificate generation, an authenticated post with course id requests that grading be carried out and a cert generated for request.user in that course, using the usual grading and certificate machinery (ie, it does not imply whitelisting, though whitelists and blacklists will be respected) - Logs each request as it comes in - Calls xq.add_cert() and consequently, does grading synchronously on this app host and then queues request for certificate agent. - example usage: ``` curl --data "student_id=9999&course_id=Stanford/2013/Some_Class" http://127.0.0.1:8000/request_certificate ``` * Studio advanced setting added, "certificates_show_before_end", which determines whether a course should permit certificates to be downloadable by students before the coures's end date has passed. - Modifications to dashboard view and templates to allow display of certificate download links before course has ended. (XXX: may declare failing students as failing before the course has ended.) - To test, turn the setting on in a course which hasn't ended yet, and force certificate generation for a student, then check their dashboard.
Showing
- common/djangoapps/student/views.py 10 additions, 10 deletionscommon/djangoapps/student/views.py
- common/lib/xmodule/xmodule/course_module.py 9 additions, 0 deletionscommon/lib/xmodule/xmodule/course_module.py
- common/lib/xmodule/xmodule/tests/test_course_module.py 48 additions, 4 deletionscommon/lib/xmodule/xmodule/tests/test_course_module.py
- lms/djangoapps/certificates/queue.py 16 additions, 6 deletionslms/djangoapps/certificates/queue.py
- lms/djangoapps/certificates/views.py 37 additions, 5 deletionslms/djangoapps/certificates/views.py
- lms/templates/dashboard/_dashboard_certificate_information.html 4 additions, 1 deletion...mplates/dashboard/_dashboard_certificate_information.html
- lms/templates/dashboard/_dashboard_course_listing.html 1 addition, 1 deletionlms/templates/dashboard/_dashboard_course_listing.html
- lms/urls.py 1 addition, 0 deletionslms/urls.py
Please register or sign in to comment