Exemplo n.º 1
0
def subject_upload_process_controller():
	file = request.files['file']
	rows = get_row_values(file)
	rows=rows[1:]
	for column in rows:
		new_subject = Subject(
					id=generate_key(),
					name=column[0])
		new_subject.put()
	return render_template('all_done.html')
Exemplo n.º 2
0
def teacher_upload_process_controller():
	file = request.files['file']
	rows = get_row_values(file)
	rows=rows[1:]
	for column in rows:
		new_teacher = Teacher(
					id=generate_key(),
					name=column[0],
					email=column[1])
		new_teacher.put()
	return render_template('all_done.html')
Exemplo n.º 3
0
def student_upload_process_controller():
    file = request.files['file']
    rows = get_row_values(file)
    rows = rows[1:]
    for column in rows:
        new_student = Student(id=generate_key(),
                              name=column[0],
                              email=column[1],
                              username=column[2],
                              password=column[3])
        new_student.put()
    return render_template('all_done.html')