Add utility method for the project infos
authorduplo <duplo@38d2e660-2303-0410-9eaa-f027e97ec537>
Wed, 28 Jan 2009 11:55:50 +0000 (11:55 +0000)
committerduplo <duplo@38d2e660-2303-0410-9eaa-f027e97ec537>
Wed, 28 Jan 2009 11:55:50 +0000 (11:55 +0000)
git-svn-id: https://src.develer.com/svnoss/bertos/trunk@2236 38d2e660-2303-0410-9eaa-f027e97ec537

wizard/BProject.py
wizard/BWizard.py

index 9c4a11a9bf7c4f6bb10ea7165cb65b01fd66b01b..08bac0f0cf88255188aafc052b82e7bce2d34439 100644 (file)
@@ -23,4 +23,4 @@ class BProject(object):
         return None
     
     def __repr__(self):
-        return repr(self.infos())
\ No newline at end of file
+        return repr(self.infos)
\ No newline at end of file
index 497ea51d3c674406995538d4c06377486c2db716..d9dc4994a9660e46b1cc8ef9a9e17af0bf10c2f5 100644 (file)
@@ -9,6 +9,8 @@
 # Author: Lorenzo Berni <duplo@develer.com>
 #
 
+import copy
+
 from PyQt4.QtCore import *
 from PyQt4.QtGui import *
 
@@ -46,4 +48,7 @@ class BWizard(QWizard):
             prevPage.saveData()
         page = self.page(pageId)
         if page is not None:
-            page.reloadData()
\ No newline at end of file
+            page.reloadData()
+    
+    def _project(self):
+        return copy.deepcopy(QApplication.instance().project)
\ No newline at end of file