X-Git-Url: https://codewiz.org/gitweb?a=blobdiff_plain;f=wizard%2FBProject.py;h=54db258a6c668bc7007130c40ed56fdd146c1235;hb=32eebaf8bf80d1ffd417bfe6d2c34e6cd3684f87;hp=907599c7ff9986bb99488c57793200d778fbfe5f;hpb=09c65af968e05eb488e08541a04e4d084f63ee01;p=bertos.git diff --git a/wizard/BProject.py b/wizard/BProject.py index 907599c7..54db258a 100644 --- a/wizard/BProject.py +++ b/wizard/BProject.py @@ -10,18 +10,26 @@ # class BProject(object): + """ + Simple class for store and retrieve project informations. + """ def __init__(self): - pass + self.infos = {} - def openProject(self, path): - # Fill the BProject fields, opening an existing project - pass + def setInfo(self, key, value): + """ + Store the given value with the name key. + """ + self.infos[key] = value - def setProjectPath(self, path): - self.projectPath = 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 - def setSourcePath(self, path): - self.sourcePath = path - - \ No newline at end of file + def __repr__(self): + return repr(self.infos) \ No newline at end of file