Exemple #1
0
 def importRooms(self):
     rooms = ioHandler.getCSVFile('rooms')
     if rooms:
         rooms.pop(0)
         rooms.pop(0)
         blankSchedule = json.dumps(Timetable.generateRawTable())
         for room in rooms:
             Room.Room.insertRoom([room[0], blankSchedule, room[1]])
         self.tabListener(1)
Exemple #2
0
 def importInstructors(self):
     instructors = ioHandler.getCSVFile('enseignants')
     if instructors:
         instructors.pop(0)
         instructors.pop(0)
         blankSchedule = json.dumps(Timetable.generateRawTable())
         for instructor in instructors:
             Instructor.Instructor.insertInstructor([instructor[0], float(instructor[1]), blankSchedule])
         self.tabListener(0)