def listActivities(self, day): list_ctrl = self.list_ctrl_list[day-1] res = fetch.excul_groups_forSchSemYr(day, gVar.semester, gVar.school_id) newlist = [] for row in res: newlist.append((row[0], row[2], row[4])) res = tuple(newlist) list_ctrl.SetItemMap(fetch.build_dictionary(res))
def displayData(self): #rint'school_id, semester, schYr, day', gVar.school_id, gVar.semester, gVar.schYr, gVar.dayNo self.insertion = '' self.replace_id = 0 self.replaceName = '' listOfExcul = fetch.excul_groups_forSchSemYr(gVar.dayNo, gVar.semester, gVar.school_id ) #rint 'listOfExcul' , listOfExcul return lv.populateWithList(self.list_ctrl_excul, listOfExcul) otherActivities = fetch.excul_activities_otherThan(listOfExcul) lv.populateWithList(self.list_ctrl_activity_pool, otherActivities) otherTeachers = fetch.excul_teacherIDs_otherThan(listOfExcul) lv.populateWithList(self.list_ctrl_teacher_pool, otherTeachers)