/offlineimap/head: changeset 443

Fixed account names in password prompts
This commit is contained in:
jgoerzen 2003-04-18 03:43:54 +01:00
parent faf26007b1
commit b9f2eca42c
2 changed files with 2 additions and 6 deletions

View File

@ -46,9 +46,7 @@ class TTYUI(UIBase):
s._msg("%s: %s" % (accountname, errmsg)) s._msg("%s: %s" % (accountname, errmsg))
s.outputlock.acquire() s.outputlock.acquire()
try: try:
return getpass("%s: Enter password for %s on %s: " % return getpass("%s: Enter password: " % accountname)
(accountname, config.get(accountname, "remoteuser"),
config.get(accountname, "remotehost")))
finally: finally:
s.outputlock.release() s.outputlock.release()

View File

@ -38,9 +38,7 @@ class PasswordDialog:
text = '' text = ''
if errmsg: if errmsg:
text = '%s: %s\n' % (accountname, errmsg) text = '%s: %s\n' % (accountname, errmsg)
text += "%s: Enter password for %s on %s: " % \ text += "%s: Enter password: " % accountname
(accountname, config.get(accountname, "remoteuser"),
config.get(accountname, "remotehost"))
self.label = Label(self.top, text = text) self.label = Label(self.top, text = text)
self.label.pack() self.label.pack()