Exemplo n.º 1
0
Arquivo: menu.py Projeto: jagnip/CCMS
    def __init__(self, session, view, user_input):
        """
        Creates Menu obj with instance attributes: logged_user, view,
                                                   user_input
        Parameters:
        logged_user: Codecooler obj
        view: View obj
        user_input: UserInput obj
        """

        self.session = session
        self.view = view
        self.user_input = user_input
        self.codecooler_controller = CodecoolerController(user_input, view)
        self.attendance_controller = AttendanceController(user_input, view)
        self.submission_controller = SubmissionController(
            session, user_input, view)
        self.assignment_controller = AssignmentController(user_input, view)