def _onAcceptClicked(self):
     count = self.viewModel.getItemCount()
     isRearm = self.viewModel.getIsRearm()
     vehicle = g_currentVehicle.item
     if vehicle is not None:
         yield VehicleAutoBattleBoosterEquipProcessor(vehicle,
                                                      isRearm).request()
     currency = self._item.getBuyPrice(preferred=False).getCurrency(
         byWeight=True)
     result = yield ModuleBuyer(self._item, count, currency).request()
     if result.userMsg:
         SystemMessages.pushI18nMessage(result.userMsg,
                                        type=result.sysMsgType)
     super(BoosterBuyWindowView, self)._onAcceptClicked()
     return
 def setAutoRearm(self, autoRearm):
     vehicle = g_currentVehicle.item
     if vehicle is not None:
         yield VehicleAutoBattleBoosterEquipProcessor(vehicle,
                                                      autoRearm).request()
     return
 def setAutoRearm(self, autoRearm):
     vehicle = self._getVehicle()
     if vehicle is not None:
         yield VehicleAutoBattleBoosterEquipProcessor(vehicle,
                                                      autoRearm).request()
     return