def onVehiclesUpdate(self, vehicles):
        if vehicles is None or self.__lockUpdate:
            return
        vehCompDescr = vehicles.get(g_currentVehicle.invID)
        if vehCompDescr is not None:
            vehDescr = VehicleDescr(compactDescr=vehCompDescr)
            for interface in self.__interfaces.itervalues():
                interface.update(CustomizationHelper.getUpdatedDescriptor(vehDescr))

            self.as_refreshItemsDataS()
    def onVehiclesUpdate(self, vehicles):
        if vehicles is None or self.__lockUpdate:
            return
        else:
            vehCompDescr = vehicles.get(g_currentVehicle.invID)
            if vehCompDescr is not None:
                vehDescr = VehicleDescr(compactDescr=vehCompDescr)
                for interface in self.__interfaces.itervalues():
                    interface.update(vehDescr)

            return
Exemple #3
0
    def onVehiclesUpdate(self, vehicles):
        if vehicles is None or self.__lockUpdate:
            return
        else:
            vehCompDescr = vehicles.get(g_currentVehicle.invID)
            if vehCompDescr is not None:
                vehDescr = VehicleDescr(compactDescr=vehCompDescr)
                for interface in self.__interfaces.itervalues():
                    interface.update(vehDescr)

            return
Exemple #4
0
    def onVehiclesUpdate(self, vehicles):
        if vehicles is None or self.__lockUpdate:
            return
        vehCompDescr = vehicles.get(g_currentVehicle.invID)
        if vehCompDescr is not None:
            vehDescr = VehicleDescr(compactDescr=vehCompDescr)
            for interface in self.__interfaces.itervalues():
                interface.update(
                    CustomizationHelper.getUpdatedDescriptor(vehDescr))

            self.as_refreshItemsDataS()