git://git.onelab.eu
/
sfa-gui.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Added SubmitPanel, HelpPanel for PlanetLab and VINI
[sfa-gui.git]
/
SfaData.py
diff --git
a/SfaData.py
b/SfaData.py
index
343ad0e
..
049b0d3
100644
(file)
--- a/
SfaData.py
+++ b/
SfaData.py
@@
-59,13
+59,19
@@
class ViniData(SfaData):
SfaData.__init__(self)
self.registry = "http://www.planet-lab.org:12345"
self.slicemgr = "http://www.vini-veritas.net:12346"
SfaData.__init__(self)
self.registry = "http://www.planet-lab.org:12345"
self.slicemgr = "http://www.vini-veritas.net:12346"
+ self.rspec = None
- def
get
RSpec(self):
+ def
refresh
RSpec(self):
xml = SfaData.getRSpec(self)
xml = SfaData.getRSpec(self)
-
return
RSpec(xml)
+
self.rspec =
RSpec(xml)
- def applyRSpec(self, rspec):
- xml = rspec.toxml()
+ def getRSpec(self):
+ if self.rspec is None:
+ self.refreshRSpec()
+ return self.rspec
+
+ def applyRSpec(self):
+ xml = self.rspec.toxml()
SfaData.applyRSpec(self, xml)
class PlanetLabData(SfaData):
SfaData.applyRSpec(self, xml)
class PlanetLabData(SfaData):
@@
-73,13
+79,19
@@
class PlanetLabData(SfaData):
SfaData.__init__(self)
self.registry = "http://www.planet-lab.org:12345"
self.slicemgr = "http://www.planet-lab.org:12346"
SfaData.__init__(self)
self.registry = "http://www.planet-lab.org:12345"
self.slicemgr = "http://www.planet-lab.org:12346"
+ self.rspec = None
- def
get
RSpec(self):
+ def
refresh
RSpec(self):
xml = SfaData.getRSpec(self)
xml = SfaData.getRSpec(self)
-
return
RSpec(xml)
+
self.rspec =
RSpec(xml)
- def applyRSpec(self, rspec):
- xml = rspec.toxml()
+ def getRSpec(self):
+ if self.rspec is None:
+ self.refreshRSpec()
+ return self.rspec
+
+ def applyRSpec(self):
+ xml = self.rspec.toxml()
SfaData.applyRSpec(self, xml)
class OpenCirrusData(SfaData):
SfaData.applyRSpec(self, xml)
class OpenCirrusData(SfaData):