Correct a critical bug
authorduplo <duplo@38d2e660-2303-0410-9eaa-f027e97ec537>
Mon, 20 Apr 2009 10:23:12 +0000 (10:23 +0000)
committerduplo <duplo@38d2e660-2303-0410-9eaa-f027e97ec537>
Mon, 20 Apr 2009 10:23:12 +0000 (10:23 +0000)
git-svn-id: https://src.develer.com/svnoss/bertos/trunk@2569 38d2e660-2303-0410-9eaa-f027e97ec537

wizard/BProject.py

index 95e514c11d1382b9efbf8b170ccaad14cc81a5c8..154a3d2f60d85fd77e08cbb0c5ca80174b116946 100644 (file)
@@ -9,6 +9,8 @@
 # Author: Lorenzo Berni <duplo@develer.com>
 #
 
+import copy
+
 class BProject(object):
     """
     Simple class for store and retrieve project informations.
@@ -28,7 +30,7 @@ class BProject(object):
         Retrieve the value associated with the name key.
         """
         if key in self.infos:
-            return self.infos[key]
+            return copy.deepcopy(self.infos[key])
         return None
     
     def __repr__(self):