Add the None default value for the project infos
[bertos.git] / wizard / BProject.py
1 #!/usr/bin/env python
2 # encoding: utf-8
3 #
4 # Copyright 2008 Develer S.r.l. (http://www.develer.com/)
5 # All rights reserved.
6 #
7 # $Id:$
8 #
9 # Author: Lorenzo Berni <duplo@develer.com>
10 #
11
12 class BProject(object):
13     
14     def __init__(self):
15         self.infos = {}
16     
17     def setInfo(self, key, value):
18         self.infos[key] = value
19     
20     def info(self, key):
21         if key in self.infos.keys():
22             return self.infos[key]
23         return None