/head: changeset 62

Initial work on threading support
This commit is contained in:
jgoerzen
2002-07-04 01:02:10 +01:00
parent b0e5979735
commit 8df2ac0a47
6 changed files with 52 additions and 20 deletions

View File

@ -9,9 +9,10 @@ class TTYUI(UIBase):
def _msg(s, msg):
print msg
def getpass(s, accountname, host, port, user):
def getpass(s, accountname, config):
return getpass("%s: Enter password for %s on %s: " %
(accountname, user, host))
(accountname, config.get(accountname, "remoteuser"),
config.get(accountname, "remotehost")))
def syncingmessages(s, sr, sf, dr, df):
if s.verbose:

View File

@ -36,7 +36,7 @@ class UIBase:
################################################## INPUT
def getpass(s, accountname, host, port, user):
def getpass(s, accountname, config):
raise NotImplementedException
def folderlist(s, list):