def registerNewTeacher(self, doc, name): query = Query() return query.Add(teachers=None, document=doc, name_teacher=name)
def registerCalification(self, id_group, id_student, value): query = Query() return query.Add(califications=None, id_group=id_group, id_student=id_student, value=value)
def __init__(self): self.query = Query()
def registerAsignatureByTeacher(self, id_asignature, id_teacher): query = Query() return query.Add(groups=None, id_asignature=id_asignature, id_teacher=id_teacher)
def getStudentsByGroup(self, id_group): query = Query() return query.getStudentsByGroup(id_group)
def getOneGroupByTeacher(self, id_asignature, id_teacher): query = Query() return query.getOneGroupByTeacher(id_asignature, id_teacher)
def getAsignatures(self): query = Query() return query.showAll('asignatures')
def loginTeacher(self, value): query = Query() return query.showByField('teachers', 'document', value)
def getAsignaturesByTeacher(self, id_teacher): query = Query() return query.getGroupByTeacher(id_teacher)
def getCalificationsByGroupStudent(self, id_group, id_student): query = Query() return query.getCalificationsByGroupStudent(id_group, id_student)
def registerNewStudent(self, doc, name): query = Query() return query.Add(students=None, document=doc, name_student=name)
def registerInGroup(self, id_group, id_student): query = Query() return query.Add(group_students=None, id_group=id_group, id_student=id_student)
def getGroupByStudent(self, id_group, id_student): query = Query() return query.getGroupByStudent(id_group, id_student)
def getGroups(self): query = Query() return query.getGroups()
def getAsignaturesByStudent(self, id_student): query = Query() return query.getAsignatureByStudent(id_student)
def loginStudent(self, value): query = Query() return query.showByField('students', 'document', value)