Correct a problema about the empty configurations
authorduplo <duplo@38d2e660-2303-0410-9eaa-f027e97ec537>
Mon, 9 Feb 2009 10:34:53 +0000 (10:34 +0000)
committerduplo <duplo@38d2e660-2303-0410-9eaa-f027e97ec537>
Mon, 9 Feb 2009 10:34:53 +0000 (10:34 +0000)
git-svn-id: https://src.develer.com/svnoss/bertos/trunk@2326 38d2e660-2303-0410-9eaa-f027e97ec537

wizard/BModulePage.py

index 64f9fd0b4b72c2749fd42e4cf66879705982cdec..ee713ab4e459e05c0cd5ced60062c4a834961ded 100644 (file)
@@ -173,7 +173,10 @@ class BModulePage(BWizardPage):
     
     def _configurations(self, module):
         configuration = self._projectInfoRetrieve("MODULES")[module]["configuration"]
-        return self._projectInfoRetrieve("CONFIGURATIONS")[configuration]
+        if len(configuration) > 0:
+            return self._projectInfoRetrieve("CONFIGURATIONS")[configuration]
+        else:
+            return {}
     
     def _resetPropertyDescription(self):
         for index in range(self.pageContent.propertyTable.rowCount()):