# Copyright 2009 Develer S.r.l. (http://www.develer.com/)
# All rights reserved.
#
-# $Id:$
+# $Id$
#
# Author: Lorenzo Berni <duplo@develer.com>
#
from BWizardPage import *
import bertos_utils
+from bertos_utils import SupportedException
from DefineException import *
from const import *
index = 0
for i, property in param_list:
if "type" in configurations[property]["informations"] and configurations[property]["informations"]["type"] == "autoenabled":
- ## Doesn't show the hidden fields
+ # Doesn't show the hidden fields
pass
else:
- ## Set the row count to the current index + 1
+ # Set the row count to the current index + 1
self.pageContent.propertyTable.setRowCount(index + 1)
item = QTableWidgetItem(configurations[property]["brief"])
item.setData(Qt.UserRole, qvariant_converter.convertString(property))
"""
Loads the module data.
"""
- ## Load the module data only if it isn't already loaded
+ # Load the module data only if it isn't already loaded
if self.projectInfo("MODULES") == None \
and self.projectInfo("LISTS") == None \
and self.projectInfo("CONFIGURATIONS") == None:
Inserts in the table at index a spinbox for an int, a long or an unsigned
long property setted to value.
"""
- ## int, long or undefined type property
+ # int, long or undefined type property
spin_box = None
if bertos_utils.isLong(informations) or bertos_utils.isUnsignedLong(informations):
spin_box = QDoubleSpinBox()
Resolves the selection dependencies.
"""
modules = self.projectInfo("MODULES")
+ try:
+ supported = bertos_utils.isSupported(selectedModule, self.project())
+ except SupportedException, e:
+ self.exceptionOccurred(self.tr("Error evaluating \"%1\" for module %2").arg(e.support_string).arg(selectedModule))
+ supported = True
+ # Temporary feedback
+ if supported:
+ print "%s is supported" %selectedModule
+ else:
+ print "%s is not supported" %selectedModule
modules[selectedModule]["enabled"] = True
self.setProjectInfo("MODULES", modules)
depends = self.projectInfo("MODULES")[selectedModule]["depends"]