class StudentsByClass: def __init__(self): self.bll = BLL() def on_get(self, request, response, class_id): data = self.bll.list_of_students_by_class(int(class_id)) response.body = json.dumps(data) return response
class ClassList: def __init__(self): self.bll = BLL() def on_get(self, request, response): data = self.bll.list_of_classes() response.body = json.dumps(data) return response
class GradeSheetClass: def __init__(self): self.bll = BLL() def on_get(self, request, response, class_id): data = self.bll.grade_sheet(int(class_id)) response.body = json.dumps(data) return response
class PerformanceByClass: def __init__(self): self.bll = BLL() def on_get(self, request, response, class_id): data = self.bll.performance_by_class_id(int(class_id)) response.body = json.dumps(data) return response
class ClassByStudent: def __init__(self): self.bll = BLL() def on_get(self, request, response, student_id): data = self.bll.list_of_class_for_student(int(student_id)) response.body = json.dumps(data) return response
def __init__(self): self.bll = BLL()