X-Git-Url: https://codewiz.org/gitweb?a=blobdiff_plain;f=wizard%2FBProject.py;h=154a3d2f60d85fd77e08cbb0c5ca80174b116946;hb=1fc71821dbce1d85a5d5227bd9e6580b573e8eba;hp=19d61a1ccbe6167e93d04a33823a6b4cc4526e06;hpb=67e2ddd0e9a3aaf90b379a120ae5265dc82e6912;p=bertos.git diff --git a/wizard/BProject.py b/wizard/BProject.py index 19d61a1c..154a3d2f 100644 --- a/wizard/BProject.py +++ b/wizard/BProject.py @@ -4,20 +4,34 @@ # Copyright 2008 Develer S.r.l. (http://www.develer.com/) # All rights reserved. # -# $Id:$ +# $Id$ # # Author: Lorenzo Berni # +import copy + 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: + return copy.deepcopy(self.infos[key]) + return None - \ No newline at end of file + def __repr__(self): + return repr(self.infos) \ No newline at end of file