Add exception handling for parsing error within the preset route.
[bertos.git] / wizard / BFolderPage.py
index 06191f6be8af9be12fd4debfafee6018760181ad..9944677c7bc267d6f4a5796f4e765cd83b25200e 100644 (file)
@@ -65,7 +65,8 @@ class BFolderPage(BWizardPage):
         if self.pageContent.projectPath.text() != "None":
             self.setProjectInfo("PROJECT_PATH", unicode(self.pageContent.projectPath.text()))
             self.setProjectInfo("PROJECT_NAME", os.path.basename(unicode(self.pageContent.projectPath.text())))
-            self.setProjectInfo("ROUTE", self.next_page)
+            self.setProjectInfo("PROJECT_SRC_PATH", os.path.join(self.projectInfo("PROJECT_PATH"), self.projectInfo("PROJECT_NAME")))
+            self.setProjectInfo("PROJECT_HW_PATH", os.path.join(self.projectInfo("PROJECT_PATH"), self.projectInfo("PROJECT_NAME")))
             return True
         else:
             return False
@@ -87,7 +88,7 @@ class BFolderPage(BWizardPage):
         self.connect(self.pageContent.nameEdit, SIGNAL("textChanged(const QString)"), self.nameChanged)
         self.connect(self.pageContent.directoryEdit, SIGNAL("textChanged(const QString)"), self.directoryChanged)
         self.connect(self.pageContent.directoryButton, SIGNAL("clicked()"), self.selectDirectory)
-        self.connect(self.pageContent.customButton, SIGNAL("toggled(bool)"), self.isComplete)
+        self.connect(self.pageContent.customButton, SIGNAL("toggled(bool)"), self.isComplete)
     
     ####
 
@@ -126,16 +127,6 @@ class BFolderPage(BWizardPage):
             self.pageContent.directoryEdit.setText(QDir.toNativeSeparators(directory))
 
     ####
-
-    @property
-    def next_page(self):
-        """
-        Contains the next page class.
-        """
-        if self.pageContent.customButton.isChecked():
-            return BCpuPage
-        else:
-            return BBoardPage
     
     def initializeAttributes(self):
         """