@login_required
def notes(request, course_id):
 course_key = SlashSeparatedCourseKey.from_deprecated_string(course_id)
 course = get_course_with_access(request.user, 'load', course_key)
 if (not notes_enabled_for_course(course)):
  raise Http404
 notes = Note.objects.filter(course_id=course_key, user=request.user).order_by('-created', 'uri')
 student = request.user
 storage = course.annotation_storage_url
 context = {'course': course, 'notes': notes, 'student': student, 'storage': storage, 'token': retrieve_token(student.email, course.annotation_token_secret), 'default_tab': 'myNotes'}
 return render_to_response('notes.html', context)

@ login_required def notes ( request , course_id ) : course_key = SlashSeparatedCourseKey . from_deprecated_string ( course_id ) course = get_course_with_access ( request . user , 'load' , course_key ) if ( not notes_enabled_for_course ( course ) ) : raise Http404 notes = Note . objects . filter ( course_id = course_key , user = request . user ) . order_by ( '-created' , 'uri' ) student = request . user storage = course . annotation_storage_url context = { 'course' : course , 'notes' : notes , 'student' : student , 'storage' : storage , 'token' : retrieve_token ( student . email , course . annotation_token_secret ) , 'default_tab' : 'myNotes' } return render_to_response ( 'notes.html' , context )
find notes in the given document and mark them up as such .