Merge pull request #3466 from lduarte1991/lduarte-harvardx

Reconnecting Token Generator for Annotation Tool
This commit is contained in:
David Baumgold
2014-05-09 16:14:42 -04:00
19 changed files with 176 additions and 464 deletions

View File

@@ -4,6 +4,7 @@ from edxmako.shortcuts import render_to_response
from courseware.courses import get_course_with_access
from notes.models import Note
from notes.utils import notes_enabled_for_course
from xmodule.annotator_token import retrieve_token
@login_required
@@ -22,7 +23,8 @@ def notes(request, course_id):
'course': course,
'notes': notes,
'student': student,
'storage': storage
'storage': storage,
'token': retrieve_token(student.email, course.annotation_token_secret),
}
return render_to_response('notes.html', context)