Beispiel #1
0
 def registerNewTeacher(self, doc, name):
     query = Query()
     return query.Add(teachers=None, document=doc, name_teacher=name)
Beispiel #2
0
 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)
Beispiel #3
0
 def __init__(self):
     self.query = Query()
Beispiel #4
0
 def registerAsignatureByTeacher(self, id_asignature, id_teacher):
     query = Query()
     return query.Add(groups=None,
                      id_asignature=id_asignature,
                      id_teacher=id_teacher)
Beispiel #5
0
 def getStudentsByGroup(self, id_group):
     query = Query()
     return query.getStudentsByGroup(id_group)
Beispiel #6
0
 def getOneGroupByTeacher(self, id_asignature, id_teacher):
     query = Query()
     return query.getOneGroupByTeacher(id_asignature, id_teacher)
Beispiel #7
0
 def getAsignatures(self):
     query = Query()
     return query.showAll('asignatures')
Beispiel #8
0
 def loginTeacher(self, value):
     query = Query()
     return query.showByField('teachers', 'document', value)
Beispiel #9
0
 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)