From 90746c621a14b2643345753a1768b54c887ff475 Mon Sep 17 00:00:00 2001 From: duplo Date: Thu, 22 Jan 2009 19:39:05 +0000 Subject: [PATCH] Add the _loadModuleData() method, a method that load the modules, the define lists and the needed configurations git-svn-id: https://src.develer.com/svnoss/bertos/trunk@2211 38d2e660-2303-0410-9eaa-f027e97ec537 --- wizard/BModulePage.py | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/wizard/BModulePage.py b/wizard/BModulePage.py index c670596e..deefec6d 100644 --- a/wizard/BModulePage.py +++ b/wizard/BModulePage.py @@ -25,7 +25,17 @@ class BModulePage(BWizardPage): self._connectSignals() def reloadData(self): - pass + self._loadModuleData() + + def _loadModuleData(self): + modules = bertos_utils.loadModuleInfosDict(self._projectInfoRetrieve("SOURCES_PATH")) + lists = bertos_utils.loadDefineListsDict(self._projectInfoRetrieve("SOURCES_PATH")) + configurations = {} + for module, informations in modules.items(): + configurations.update(bertos_utils.loadConfigurationInfos(self._projectInfoRetrieve("SOURCES_PATH") + "/" + informations["configuration"])) + print "modules", modules + print "lists", lists + print "configurations", configurations def _setupUi(self): self.pageContent.moduleList.setSortingEnabled(True) -- 2.25.1