def on_set_note(self, event):
fila = self.listadoVM
for i in range(len(fila)):
if logger != None: logger.info(fila[i])
# At tree elemente are the name and the nine at the UUID
vm = conexion.searchIndex.FindByUuid(None,fila[8], True)
self.my_dialogo_ssh = dialogos.Dialogo_user_pass(None, -1, 'New Note in: {0}' .format(vm.name))
punteromaquina = vim.vm.ConfigSpec()
# the actual file 8 is the Note
self.my_dialogo_ssh.usuario.SetValue('{0}' .format(fila[7]) )
result = self.my_dialogo_ssh.ShowModal() # pintamos la ventan con la informcion
if result == wx.ID_OK:
punteromaquina.annotation = str( self.my_dialogo_ssh.usuario.GetValue())
task = vm.ReconfigVM_Task(punteromaquina)
tasks.wait_for_tasks(conexion, [task])
self.my_dialogo_ssh.Destroy()
评论列表
文章目录