self.updateView()
def submit(self):
- self.parent().setStatus("TODO: Submit not implemented yet!")
+ self.parent().setStatus("TODO: Submit not implemented yet!", 3000)
def readSliceRSpec(self):
- rspec_file = os.path.expanduser("~/.sfi/%s.rspec" % config.getSlice())
+ rspec_file = config.getSliceRSpecFile()
xml = open(rspec_file).read()
return xml
def refresh(self, link=None):
if not config.getSlice():
- self.parent().setStatus("<font color='red'>Slice not set yet!</font>")
+ self.parent().setStatus("<font color='red'>Slice not set yet!</font>", timeout=None)
return
self.process = SfiProcess()
outfile = self.process.getRSpecFromSM()
- self.parent().setStatus("Updating slice data. This may take some time...")
+ self.parent().setStatus("Updating slice data. This may take some time...", timeout=None)
self.connect(self.process, SIGNAL('finished()'), self.refreshFinished)
def refreshFinished(self):
del self.process
- self.parent().setStatus("<font color='green'>Slice data updated.</font>")
+ self.parent().setStatus("<font color='green'>Slice data updated.</font>", timeout=5000)
self.updateView()
def updateView(self):