Exemplo 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)
Exemplo n.º 2
0
 def duplicateHost(self):
     hostDialog = HostConfigDialog(self.hosts)
     resp = hostDialog.duplicate(self.getCurrentHostListItemName())
     self._processHostSubmit(resp)
Exemplo n.º 3
0
 def addHost(self):
     hostDialog = HostConfigDialog(self.hosts)
     self._processHostSubmit(hostDialog.add())
Exemplo n.º 4
0
 def duplicateHost(self):
     hostDialog = HostConfigDialog(self.hosts)
     resp = hostDialog.duplicate(self.getCurrentHostListItemName())
     self._processHostSubmit(resp)
Exemplo n.º 5
0
 def addHost(self):
     hostDialog = HostConfigDialog(self.hosts)
     self._processHostSubmit(hostDialog.add())
Exemplo n.º 6
0
 def editHost(self):
     hostDialog = HostConfigDialog(self.hosts)
     resp = hostDialog.edit(self.getCurrentHostListItemName())
     if resp["code"]:
         self.setHostList()