Show the scroll area only where there are one or more used plugins.
[bertos.git] / wizard / BProject.py
index f2c1e9a1f376f3ed9d618cf08d3ebd39d4be0827..154a3d2f60d85fd77e08cbb0c5ca80174b116946 100644 (file)
@@ -4,18 +4,34 @@
 # Copyright 2008 Develer S.r.l. (http://www.develer.com/)
 # All rights reserved.
 #
-# $Id:$
+# $Id$
 #
 # Author: Lorenzo Berni <duplo@develer.com>
 #
 
+import copy
+
 class BProject(object):
+    """
+    Simple class for store and retrieve project informations.
+    """
     
     def __init__(self):
         self.infos = {}
     
     def setInfo(self, key, value):
+        """
+        Store the given value with the name key.
+        """
         self.infos[key] = value
     
     def info(self, key):
-        return self.infos[key]
\ No newline at end of file
+        """
+        Retrieve the value associated with the name key.
+        """
+        if key in self.infos:
+            return copy.deepcopy(self.infos[key])
+        return None
+    
+    def __repr__(self):
+        return repr(self.infos)
\ No newline at end of file