X-Git-Url: https://codewiz.org/gitweb?a=blobdiff_plain;f=wizard%2FBProject.py;h=154a3d2f60d85fd77e08cbb0c5ca80174b116946;hb=872b99bb27c0e126825ee03b00efdffb77acdfd7;hp=9c4a11a9bf7c4f6bb10ea7165cb65b01fd66b01b;hpb=0baa18b329a9bc006fc74f7ef65581b04b43cfb7;p=bertos.git diff --git a/wizard/BProject.py b/wizard/BProject.py index 9c4a11a9..154a3d2f 100644 --- a/wizard/BProject.py +++ b/wizard/BProject.py @@ -4,23 +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): 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(): - return self.infos[key] + """ + 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 + return repr(self.infos) \ No newline at end of file