projects
/
bertos.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add full support for AT91SAM7S64, AT91SAM7S128, AT91SAM7S512, AT91SAM7X512.
[bertos.git]
/
wizard
/
BProject.py
diff --git
a/wizard/BProject.py
b/wizard/BProject.py
index 907599c7ff9986bb99488c57793200d778fbfe5f..54db258a6c668bc7007130c40ed56fdd146c1235 100644
(file)
--- a/
wizard/BProject.py
+++ b/
wizard/BProject.py
@@
-10,18
+10,26
@@
#
class BProject(object):
#
class BProject(object):
+ """
+ Simple class for store and retrieve project informations.
+ """
def __init__(self):
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