minor connectionmanager fixes on adding hsot

This commit is contained in:
Marcos Pinto 2009-01-28 01:14:29 +00:00
parent 4d2c6881f8
commit 01fbda7c9e
1 changed files with 2 additions and 2 deletions

View File

@ -184,7 +184,7 @@ class ConnectionManager(component.Component):
row = self.liststore.append() row = self.liststore.append()
import time import time
import hashlib import hashlib
self.liststore[row][HOSTLIST_COL_ID] = hashlib.sha1(str(time.time()).hexdigest()) self.liststore[row][HOSTLIST_COL_ID] = hashlib.sha1(str(time.time())).hexdigest()
self.liststore[row][HOSTLIST_COL_HOST] = host self.liststore[row][HOSTLIST_COL_HOST] = host
self.liststore[row][HOSTLIST_COL_PORT] = port self.liststore[row][HOSTLIST_COL_PORT] = port
self.liststore[row][HOSTLIST_COL_USER] = username self.liststore[row][HOSTLIST_COL_USER] = username
@ -399,7 +399,7 @@ class ConnectionManager(component.Component):
# We add the host # We add the host
self.add_host(hostname, port_spinbutton.get_value_as_int(), username, password) self.add_host(hostname, port_spinbutton.get_value_as_int(), username, password)
dialog.destroy() dialog.hide()
def on_button_removehost_clicked(self, widget): def on_button_removehost_clicked(self, widget):
log.debug("on_button_removehost_clicked") log.debug("on_button_removehost_clicked")