@require_POST
@login_required
@permitted
def vote_for_comment(request, course_id, comment_id, value):
 comment = cc.Comment.find(comment_id)
 result = _vote_or_unvote(request, course_id, comment, value)
 comment_voted.send(sender=None, user=request.user, post=comment)
 return result

@ require_POST @ login_required @ permitted def vote_for_comment ( request , course_id , comment_id , value ) : comment = cc . Comment . find ( comment_id ) result = _vote_or_unvote ( request , course_id , comment , value ) comment_voted . send ( sender = None , user = request . user , post = comment ) return result
given a course_id and comment_id .