예제 #1
0
 def mainException(s):
     if isinstance(sys.exc_info()[1], KeyboardInterrupt) and \
        s.iswaiting:
         sys.stdout.write("Timer interrupted at user request; program terminating.             \n")
         s.terminate()
     else:
         UIBase.mainException(s)
예제 #2
0
파일: TTY.py 프로젝트: B-Rich/offlineimap
 def mainException(s):
     if isinstance(sys.exc_info()[1], KeyboardInterrupt) and \
        s.iswaiting:
         sys.stdout.write("Timer interrupted at user request; program terminating.             \n")
         s.terminate()
     else:
         UIBase.mainException(s)
예제 #3
0
 def mainException(s):
     s.c.stop()
     UIBase.mainException(s)
예제 #4
0
 def threadException(s, thread):
     s.c.stop()
     UIBase.threadException(s, thread)
예제 #5
0
 def terminate(s, exitstatus=0, errortitle=None, errormsg=None):
     s.c.stop()
     UIBase.terminate(s,
                      exitstatus=exitstatus,
                      errortitle=errortitle,
                      errormsg=errormsg)
예제 #6
0
 def __init__(s, config, verbose = 0):
     UIBase.__init__(s, config, verbose)
     s.iswaiting = 0
     s.outputlock = Lock()
예제 #7
0
 def terminate(s, exitstatus=0, errortitle=None, errormsg=None):
     s.c.stop()
     UIBase.terminate(s, exitstatus=exitstatus, errortitle=errortitle, errormsg=errormsg)
예제 #8
0
 def registerthread(s, account):
     UIBase.registerthread(s, account)
     s._printData('registerthread', account)
예제 #9
0
파일: TTY.py 프로젝트: noah/offlineimap
 def __init__(s, config, verbose=0):
     UIBase.__init__(s, config, verbose)
     s.iswaiting = 0
     s.outputlock = Lock()
예제 #10
0
파일: TTY.py 프로젝트: B-Rich/offlineimap
 def __init__(s, config, verbose = 0):
     UIBase.__init__(s, config, verbose)
     s.iswaiting = 0
     s.outputlock = Lock()
     s._lastThreaddisplay = None
예제 #11
0
파일: TTY.py 프로젝트: mmehnert/offlineimap
 def __init__(s, config, verbose=0):
     UIBase.__init__(s, config, verbose)
     s.iswaiting = 0
     s.outputlock = Lock()
     s._lastThreaddisplay = None
예제 #12
0
 def mainException(s):
     s.c.stop()
     UIBase.mainException(s)
예제 #13
0
 def threadException(s, thread):
     s.c.stop()
     UIBase.threadException(s, thread)
예제 #14
0
 def threadExited(s, thread):
     s._printData('threadExited', thread.getName())
     UIBase.threadExited(s, thread)
예제 #15
0
 def sleep(s, sleepsecs, siglistener):
     if s.verbose >= 0:
         s._msg("Sleeping for %d:%02d" % (sleepsecs / 60, sleepsecs % 60))
     return UIBase.sleep(s, sleepsecs, siglistener)
예제 #16
0
 def __init__(s, config, verbose = 0):
     UIBase.__init__(s, config, verbose)
     s.safechars=" ;,./-_=+()[]"
     s.iswaiting = 0
     s.outputlock = Lock()
     s._printData('__init__', protocol)
예제 #17
0
 def sleep(s, sleepsecs, siglistener):
     if s.verbose >= 0:
         s._msg("Sleeping for %d:%02d" % (sleepsecs / 60, sleepsecs % 60))
     return UIBase.sleep(s, sleepsecs, siglistener)
예제 #18
0
 def unregisterthread(s, thread):
     UIBase.unregisterthread(s, thread)
     s._printData('unregisterthread', thread.getName())
예제 #19
0
 def sleep(s, sleepsecs):
     if s.verbose >= 0:
         s._msg("Sleeping for %d:%02d" % (sleepsecs / 60, sleepsecs % 60))
     UIBase.sleep(s, sleepsecs)