2002-06-21 07:42:39 +02:00
|
|
|
from UIBase import UIBase
|
2002-06-21 07:29:12 +02:00
|
|
|
from getpass import getpass
|
|
|
|
|
2002-06-21 07:42:39 +02:00
|
|
|
class TTYUI(UIBase):
|
|
|
|
def __init__(self, verbose = 0):
|
|
|
|
self.verbose = 0
|
|
|
|
|
2002-06-21 07:29:12 +02:00
|
|
|
def _msg(s, msg):
|
|
|
|
print msg
|
|
|
|
|
|
|
|
def getpass(s, accountname, host, port, user):
|
2002-06-21 07:42:39 +02:00
|
|
|
return getpass("%s: Enter password for %s on %s: " %
|
2002-06-21 07:29:12 +02:00
|
|
|
(accountname, user, host))
|
2002-06-21 07:42:39 +02:00
|
|
|
|
|
|
|
def syncingmessages(s, sr, sf, dr, df):
|
|
|
|
if s.verbose:
|
|
|
|
UIBase.syncingmessages(s, sr, sf, dr, df)
|
|
|
|
|
|
|
|
def loadmessagelist(s, repos, folder):
|
|
|
|
if s.verbose:
|
|
|
|
UIBase.syncingmessages(s, repos, folder)
|
2002-06-21 07:29:12 +02:00
|
|
|
|
2002-06-21 07:42:39 +02:00
|
|
|
def messagelistloaded(s, repos, folder, count):
|
|
|
|
if s.verbose:
|
|
|
|
UIBase.messagelistloaded(s, repos, folder, count)
|