Esempio n. 1
0
 def addHost(self):
     hostDialog = HostConfigDialog(self.hosts)
     resp = hostDialog.add()
     if resp["code"]:
         self.setHostList()
     hostName = resp.get("name")
     if hostName:
         hostItem = self.findHostItemByName(hostName)
         self.slotConnectHost(hostItem)
Esempio n. 2
0
 def duplicateHost(self):
     hostDialog = HostConfigDialog(self.hosts)
     resp = hostDialog.duplicate(self.getCurrentHostListItemName())
     self._processHostSubmit(resp)
Esempio n. 3
0
 def addHost(self):
     hostDialog = HostConfigDialog(self.hosts)
     self._processHostSubmit(hostDialog.add())
Esempio n. 4
0
 def duplicateHost(self):
     hostDialog = HostConfigDialog(self.hosts)
     resp = hostDialog.duplicate(self.getCurrentHostListItemName())
     self._processHostSubmit(resp)
Esempio n. 5
0
 def addHost(self):
     hostDialog = HostConfigDialog(self.hosts)
     self._processHostSubmit(hostDialog.add())
Esempio n. 6
0
 def editHost(self):
     hostDialog = HostConfigDialog(self.hosts)
     resp = hostDialog.edit(self.getCurrentHostListItemName())
     if resp["code"]:
         self.setHostList()