X-Git-Url: https://codewiz.org/gitweb?a=blobdiff_plain;f=wizard%2FBProject.py;h=154a3d2f60d85fd77e08cbb0c5ca80174b116946;hb=33b3f8a472efb8b35120b681b339aecb23cd3459;hp=54db258a6c668bc7007130c40ed56fdd146c1235;hpb=ca1a17d62748010cd95a0012f67a9e80c6565d73;p=bertos.git diff --git a/wizard/BProject.py b/wizard/BProject.py index 54db258a..154a3d2f 100644 --- a/wizard/BProject.py +++ b/wizard/BProject.py @@ -4,11 +4,13 @@ # 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. @@ -27,8 +29,8 @@ class BProject(object): """ Retrieve the value associated with the name key. """ - if key in self.infos.keys(): - return self.infos[key] + if key in self.infos: + return copy.deepcopy(self.infos[key]) return None def __repr__(self):