Ejemplo n.º 1
0
 def __init__(self, personActivityRepo, URController):
     """
     Constructor method.
     :param personActivityRepo: PersonActivityRepository
     :param URController: UndoRedoController
     """
     BaseController.__init__(self, personActivityRepo, URController, "personActivity.txt")
     self.__nextId = 1
     self._controller = self
Ejemplo n.º 2
0
    def __init__(self, activityRepo, paController, URController):
        """
        Constructor method for ActivitiesController.

        :param activityRepo: ActivityRepository
        :param paController: PersonActivityController
        :param URController: UndoRedoController
        """
        BaseController.__init__(self, activityRepo, URController, "activities.txt")
        self.__paController = paController
        self.__nextId = 1
        self._controller = self