self.nodeNameDelegate = NodeNameDelegate(self)
- refresh = QPushButton("Update Slice Data", self)
+ refresh = QPushButton("Refresh Slice Data", self)
refresh.setSizePolicy(QSizePolicy.Maximum, QSizePolicy.Maximum)
renew = QPushButton("Renew Slice", self)
renew.setSizePolicy(QSizePolicy.Maximum, QSizePolicy.Maximum)
QTimer.singleShot(1000, self.refresh)
def refreshFinished(self):
- self.setStatus("<font color='green'>Slice data updated.</font>", timeout=5000)
+ self.setStatus("<font color='green'>Slice data refreshed.</font>", timeout=5000)
self.updateView()
self.parent().signalAll("rspecUpdated")
status = self.itemStatus(item)
if status == node_status['add']:
print "Add hostname: %s" % hostname
- rspec.add_slivers(hostname, testbed)
+ rspec.add_slivers(str(hostname), testbed)
change = True
elif status == node_status['remove']:
print "Remove hostname: %s" % hostname
- rspec.remove_slivers(hostname, testbed)
+ rspec.remove_slivers(str(hostname), testbed)
change = True
elif depth == 3: # Tag
tag, value = self.itemText(item).split(": ")
self.connect(self.process, SIGNAL('finished()'), self.refreshFinished)
self.process.getRSpecFromSM()
- self.setStatus("Updating slice data. This will take some time...")
+ self.setStatus("Refreshing slice data. This will take some time...")
def updateView(self):
global already_in_nodes