Exemplo n.º 1
0
 def initialize(self, *args, **kwargs):
     super(NyVehiclesViewPresenter, self).initialize(*args, **kwargs)
     NewYearSoundsManager.setHangarFilteredState(True)
     self.__subscribe()
     self.__startNotifier()
     levelStr = backport.text(
         R.strings.ny.vehiclesView.levelsStr(),
         minLevel=formatRomanNumber(NY_BRANCH_MIN_LEVEL),
         maxLevel=formatRomanNumber(NY_BRANCH_MAX_LEVEL))
     with self.viewModel.transaction() as tx:
         tx.setIsRomanNumbersAllowed(IS_ROMAN_NUMBERS_ALLOWED)
         tx.setIsPostEvent(self.__nyController.isPostEvent())
         tx.setLevelStr(levelStr)
         tx.setCurrentAtmosphereLvl(
             self.__itemsCache.items.festivity.getMaxLevel())
         self.__createVehiclesList(tx)
         self.__updateIntroStatus(tx)
Exemplo n.º 2
0
 def finalize(self):
     self.__stopNotifier()
     self.__unsubscribe()
     NewYearSoundsManager.setHangarFilteredState(False)
     super(NyVehiclesViewPresenter, self).finalize()