コード例 #1
0
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
コード例 #2
0
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
コード例 #3
0
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
コード例 #4
0
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
コード例 #5
0
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
コード例 #6
0
 def __init__(self):
     self.bll = BLL()