Add the _loadModuleData() method, a method that load the modules, the define lists...
authorduplo <duplo@38d2e660-2303-0410-9eaa-f027e97ec537>
Thu, 22 Jan 2009 19:39:05 +0000 (19:39 +0000)
committerduplo <duplo@38d2e660-2303-0410-9eaa-f027e97ec537>
Thu, 22 Jan 2009 19:39:05 +0000 (19:39 +0000)
git-svn-id: https://src.develer.com/svnoss/bertos/trunk@2211 38d2e660-2303-0410-9eaa-f027e97ec537

wizard/BModulePage.py

index c670596e7495ded8e94f34615834179ce3c408d7..deefec6d76bf4772b88f8eceacbb57839df9406c 100644 (file)
@@ -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)