Remove redundant macros.
[bertos.git] / wizard / BProject.py
index e58f5818481bbbd6d91a2fb8d99bd613ce36db6a..95e514c11d1382b9efbf8b170ccaad14cc81a5c8 100644 (file)
@@ -4,20 +4,32 @@
 # Copyright 2008 Develer S.r.l. (http://www.develer.com/)
 # All rights reserved.
 #
-# $Id:$
+# $Id$
 #
 # Author: Lorenzo Berni <duplo@develer.com>
 #
 
 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):
-        if key in self.infos.keys():
+        """
+        Retrieve the value associated with the name key.
+        """
+        if key in self.infos:
             return self.infos[key]
-        return None
\ No newline at end of file
+        return None
+    
+    def __repr__(self):
+        return repr(self.infos)
\ No newline at end of file