Esempio n. 1
0
 def __getStockModules(self):
     if self.__stockModules is None:
         self.__stockModules = tuple(
             reversed(
                 cmp_helpers.getVehicleModules(
                     Vehicle(
                         self.getBasketVehCmpData().getStockVehStrCD()))))
     return self.__stockModules
 def applyConfig(self):
     self._container.setModules(
         cmp_helpers.getVehicleModules(self.__vehicle))
     self.onCloseView()
Esempio n. 3
0
 def isTopModulesSelected(self):
     topModules = self.__getTopModules()
     selectedModules = cmp_helpers.getVehicleModules(self.__vehicle)
     return all((bool(item in selectedModules) for item in topModules))
 def isTopModulesSelected(self):
     topModules = self.__getTopModules()
     selectedModules = cmp_helpers.getVehicleModules(self.__vehicle)
     return all(map(lambda item: item in selectedModules, topModules))