projects
/
bertos.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add wizard info.
[bertos.git]
/
wizard
/
BProject.py
diff --git
a/wizard/BProject.py
b/wizard/BProject.py
index 907599c7ff9986bb99488c57793200d778fbfe5f..08bac0f0cf88255188aafc052b82e7bce2d34439 100644
(file)
--- a/
wizard/BProject.py
+++ b/
wizard/BProject.py
@@
-12,16
+12,15
@@
class BProject(object):
def __init__(self):
class BProject(object):
def __init__(self):
- pass
+ self.infos = {}
- def openProject(self, path):
- # Fill the BProject fields, opening an existing project
- pass
+ def setInfo(self, key, value):
+ self.infos[key] = value
- def setProjectPath(self, path):
- self.projectPath = path
+ def info(self, 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