From: duplo Date: Mon, 9 Feb 2009 10:34:53 +0000 (+0000) Subject: Correct a problema about the empty configurations X-Git-Tag: 2.1.0~356 X-Git-Url: https://codewiz.org/gitweb?a=commitdiff_plain;ds=sidebyside;h=f08b2428843745bd9d15aecb4e2006f8350ece36;p=bertos.git Correct a problema about the empty configurations git-svn-id: https://src.develer.com/svnoss/bertos/trunk@2326 38d2e660-2303-0410-9eaa-f027e97ec537 --- diff --git a/wizard/BModulePage.py b/wizard/BModulePage.py index 64f9fd0b..ee713ab4 100644 --- a/wizard/BModulePage.py +++ b/wizard/BModulePage.py @@ -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()):