コード例 #1
0
def _section_special_exams(course, access):
    """ Provide data for the corresponding dashboard section """
    course_key = six.text_type(course.id)
    proctoring_provider = course.proctoring_provider
    escalation_email = None
    if proctoring_provider == 'proctortrack':
        escalation_email = course.proctoring_escalation_email
    from edx_proctoring.api import is_backend_dashboard_available

    section_data = {
        'section_key':
        'special_exams',
        'section_display_name':
        _('Special Exams'),
        'access':
        access,
        'course_id':
        course_key,
        'escalation_email':
        escalation_email,
        'show_dashboard':
        is_backend_dashboard_available(course_key),
        'enable_exam_resume_proctoring_improvements':
        EXAM_RESUME_PROCTORING_IMPROVEMENTS.is_enabled(course.id),
    }
    return section_data
コード例 #2
0
def _section_special_exams(course, access):
    """ Provide data for the corresponding dashboard section """
    course_key = str(course.id)
    proctoring_provider = course.proctoring_provider
    escalation_email = None
    if proctoring_provider == 'proctortrack':
        escalation_email = course.proctoring_escalation_email
    from edx_proctoring.api import is_backend_dashboard_available

    section_data = {
        'section_key':
        'special_exams',
        'section_display_name':
        _('Special Exams'),
        'access':
        access,
        'course_id':
        course_key,
        'escalation_email':
        escalation_email,
        'show_dashboard':
        is_backend_dashboard_available(course_key),
        'show_onboarding':
        does_backend_support_onboarding(course.proctoring_provider),
    }
    return section_data
コード例 #3
0
def _section_special_exams(course, access):
    """ Provide data for the corresponding dashboard section """
    course_key = six.text_type(course.id)
    from edx_proctoring.api import is_backend_dashboard_available

    section_data = {
        'section_key': 'special_exams',
        'section_display_name': _('Special Exams'),
        'access': access,
        'course_id': course_key,
        'show_dashboard': is_backend_dashboard_available(course_key),
    }
    return section_data
コード例 #4
0
def _section_special_exams(course, access):
    """ Provide data for the corresponding dashboard section """
    course_key = unicode(course.id)
    from edx_proctoring.api import is_backend_dashboard_available

    section_data = {
        'section_key': 'special_exams',
        'section_display_name': _('Special Exams'),
        'access': access,
        'course_id': course_key,
        'show_dashboard': is_backend_dashboard_available(course_key),
    }
    return section_data