コード例 #1
0
 def get(self, request, course_id):  # pylint: disable=unused-argument
     """
     HTTP GET handler. Get all allowances for a course.
     Course and Global staff can view both timed and proctored exam allowances.
     """
     result_set = get_allowances_for_course(course_id=course_id)
     return Response(result_set)
コード例 #2
0
ファイル: views.py プロジェクト: npoed/edx-proctoring
 def get(self, request, course_id):  # pylint: disable=unused-argument
     """
     HTTP GET handler. Get all allowances for a course.
     """
     result_set = get_allowances_for_course(
         course_id=course_id
     )
     return Response(result_set)
コード例 #3
0
ファイル: views.py プロジェクト: muhhshoaib/edx-proctoring
    def get(self, request, course_id):  # pylint: disable=unused-argument
        """
        HTTP GET handler. Get all allowances for a course.
        """
        # course staff only views attempts of timed exams. edx staff can view both timed and proctored attempts.
        time_exams_only = not request.user.is_staff

        result_set = get_allowances_for_course(course_id=course_id, timed_exams_only=time_exams_only)
        return Response(result_set)
コード例 #4
0
ファイル: views.py プロジェクト: edx/edx-proctoring
 def get(self, request, course_id):  # pylint: disable=unused-argument
     """
     HTTP GET handler. Get all allowances for a course.
     Course and Global staff can view both timed and proctored exam allowances.
     """
     result_set = get_allowances_for_course(
         course_id=course_id
     )
     return Response(result_set)
コード例 #5
0
ファイル: views.py プロジェクト: muhhshoaib/edx-proctoring
    def get(self, request, course_id):  # pylint: disable=unused-argument
        """
        HTTP GET handler. Get all allowances for a course.
        """
        # course staff only views attempts of timed exams. edx staff can view both timed and proctored attempts.
        time_exams_only = not request.user.is_staff

        result_set = get_allowances_for_course(
            course_id=course_id, timed_exams_only=time_exams_only)
        return Response(result_set)
コード例 #6
0
ファイル: views.py プロジェクト: zimka/edx-proctoring
 def get(self, request, course_id):  # pylint: disable=unused-argument
     """
     HTTP GET handler. Get all allowances for a course.
     """
     result_set = get_allowances_for_course(course_id=course_id)
     return Response(result_set)