Esempio n. 1
0
def admin_course_add_student(ctx, course_id, user_id):
    course = get_course_or_exit(ctx, course_id)    
    user = get_user_or_exit(ctx, user_id)    
    course.add_student(user)    
Esempio n. 2
0
def admin_course_add_grader(ctx, course_id, user_id):
    course = get_course_or_exit(ctx, course_id)    
    user = get_user_or_exit(ctx, user_id)    
    course.add_grader(user)
Esempio n. 3
0
def admin_course_add_instructor(ctx, course_id, user_id):
    course = get_course_or_exit(ctx, course_id)    
    user = get_user_or_exit(ctx, user_id)    
    course.add_instructor(user)
Esempio n. 4
0
def admin_course_add_student(ctx, course_id, user_id):
    course = get_course_or_exit(ctx, course_id)
    user = get_user_or_exit(ctx, user_id)
    course.add_student(user)
Esempio n. 5
0
def admin_course_add_grader(ctx, course_id, user_id):
    course = get_course_or_exit(ctx, course_id)
    user = get_user_or_exit(ctx, user_id)
    course.add_grader(user)
Esempio n. 6
0
def admin_course_add_instructor(ctx, course_id, user_id):
    course = get_course_or_exit(ctx, course_id)
    user = get_user_or_exit(ctx, user_id)
    course.add_instructor(user)