Exemple #1
0
 def _populate(self):
     super(VehicleCompareView, self)._populate()
     self.as_setStaticDataS({'header': self.__getHeaderData()})
     self.as_setVehicleParamsDataS(getAllParametersTitles())
     self._setViewData()
     self.comparisonBasket.onChange += self.__updateUI
     self.comparisonBasket.onSwitchChange += self.__onVehCmpBasketStateChanged
     self.comparisonBasket.onParametersChange += self.__onVehicleParamsChanged
     self.comparisonBasket.onNationChange += self._setViewData
Exemple #2
0
 def _populate(self):
     super(VehicleCompareView, self)._populate()
     self.as_setStaticDataS({'header': self.__getHeaderData()})
     self.as_setVehicleParamsDataS(getAllParametersTitles())
     self.__vehDP = VehiclesDataProvider()
     self.__vehDP.setFlashObject(self.as_getVehiclesDPS())
     self.__paramsCache = VehCompareBasketParamsCache(self.__vehDP)
     self.__updateUI()
     self.comparisonBasket.onChange += self.__updateUI
     self.comparisonBasket.onSwitchChange += self.__onVehCmpBasketStateChanged
     self.comparisonBasket.onParametersChange += self.__onVehicleParamsChanged