From: duplo Date: Thu, 22 Jan 2009 19:39:05 +0000 (+0000) Subject: Add the _loadModuleData() method, a method that load the modules, the define lists... X-Git-Tag: 2.1.0~471 X-Git-Url: https://codewiz.org/gitweb?a=commitdiff_plain;h=90746c621a14b2643345753a1768b54c887ff475;hp=90500b8c052f1ae5ac3870c509cd1f37786f7e3d;p=bertos.git 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 --- 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)