def _install(self, item, vehicle, slotIdx):
     optDev = self.itemsCache.items.getItemByCD(item.id)
     if optDev is None:
         return (False, 0)
     else:
         result = optDev.mayInstall(vehicle, slotIdx)[0]
         if result:
             vehicle_adjusters.installOptionalDevice(
                 vehicle, optDev.intCD, slotIdx)
         return (result, 1)
 def installOptionalDevice(self, newId, slotIndex):
     isInstalled, _ = vehicle_adjusters.installOptionalDevice(
         self.__vehicle, newId, slotIndex)
     if isInstalled:
         self.__notifyViews('onOptDeviceUpdated')