Remove useless output
[bertos.git] / wizard / BProject.py
index 19d61a1ccbe6167e93d04a33823a6b4cc4526e06..54db258a6c668bc7007130c40ed56fdd146c1235 100644 (file)
 #
 
 class BProject(object):
+    """
+    Simple class for store and retrieve project informations.
+    """
     
     def __init__(self):
-        pass
+        self.infos = {}
     
-    def setProjectPath(self, path):
-        self.projectPath = path
+    def setInfo(self, key, value):
+        """
+        Store the given value with the name key.
+        """
+        self.infos[key] = value
     
-    def setSourcePath(self, path):
-        self.sourcePath = path
+    def info(self, key):
+        """
+        Retrieve the value associated with the name key.
+        """
+        if key in self.infos.keys():
+            return self.infos[key]
+        return None
     
-    
\ No newline at end of file
+    def __repr__(self):
+        return repr(self.infos)
\ No newline at end of file