]> code.delx.au - offlineimap/commitdiff
/offlineimap/head: changeset 306
authorjgoerzen <jgoerzen>
Sun, 5 Jan 2003 11:55:37 +0000 (12:55 +0100)
committerjgoerzen <jgoerzen>
Sun, 5 Jan 2003 11:55:37 +0000 (12:55 +0100)
Removed debug prints

offlineimap/head/offlineimap/ui/Blinkenlights.py
offlineimap/head/offlineimap/ui/Curses.py

index 8c7ffaf94e275292731124ebbde4294e75a81ad5..f5814f52706628eca7e8ec51e0577ccc567cfd11 100644 (file)
@@ -95,8 +95,6 @@ class BlinkenBase:
         
         s.tflock.acquire()
 
-        print "b98"
-
         try:
             if not accountname in s.threadframes:
                 s.threadframes[accountname] = {}
@@ -104,20 +102,14 @@ class BlinkenBase:
             if threadid in s.threadframes[accountname]:
                 return s.threadframes[accountname][threadid]
 
-            print 'b107'
-
             if not accountname in s.availablethreadframes:
                 s.availablethreadframes[accountname] = []
 
-            print 'b112'
-
             if len(s.availablethreadframes[accountname]):
                 tf = s.availablethreadframes[accountname].pop(0)
                 tf.setthread(currentThread())
             else:
-                print 'b118'
                 tf = s.getaccountframe().getnewthreadframe()
-                print 'b120'
             s.threadframes[accountname][threadid] = tf
             return tf
         
index 01e974ae6a8be98966f6fc14900c39b04d483299..3cb372773a1b9cda0d6c2c1c8f3e23b3fa37b14c 100644 (file)
@@ -215,12 +215,8 @@ class Blinkenlights(BlinkenBase, UIBase):
         s.c = CursesUtil()
         s.text = []
         BlinkenBase.init_banner(s)
-        print 217
         s.setupwindows(dolock = 0)
-        print '219a'
         s.inputhandler = InputHandler(s.c)
-        print 219
-        print 221
         
         s._msg(version.banner)
         s._msg(str(dir(s.c.stdscr)))
@@ -245,7 +241,6 @@ class Blinkenlights(BlinkenBase, UIBase):
         return password
 
     def setupwindows(s, dolock = 1):
-        print 244
         if dolock:
             s.iolock.acquire()
         try:
@@ -257,25 +252,18 @@ class Blinkenlights(BlinkenBase, UIBase):
             s.logwindow.scrollok(1)
             s.setupwindow_drawlog()
 
-            print 258
-
             accounts = s.af.keys()
             accounts.sort()
             accounts.reverse()
 
-            print 264
-
             pos = s.c.height - 1
             for account in accounts:
                 accountwindow = curses.newwin(1, s.c.width, pos, 0)
                 s.af[account].setwindow(accountwindow)
                 pos -= 1
 
-            print 272
-            
             curses.doupdate()
 
-            print 276
         finally:
             if dolock:
                 s.iolock.release()
@@ -299,9 +287,7 @@ class Blinkenlights(BlinkenBase, UIBase):
 
     def getaccountframe(s):
         accountname = s.getthreadaccount()
-        print 'c302: ', accountname
         s.aflock.acquire()
-        print 'c304'
         try:
             if accountname in s.af:
                 return s.af[accountname]
@@ -309,10 +295,8 @@ class Blinkenlights(BlinkenBase, UIBase):
             # New one.
             s.af[accountname] = CursesAccountFrame(s.c)
             #s.iolock.acquire()
-            print 297
             s.c.reset()
             s.setupwindows(dolock = 0)
-            print 300
             #s.iolock.release()
         finally:
             s.aflock.release()
@@ -325,7 +309,6 @@ class Blinkenlights(BlinkenBase, UIBase):
                 s._msg(thisline)
             return
         s.iolock.acquire()
-        print 326
         try:
             if not s.c.isactive():
                 # For dumping out exceptions and stuff.
@@ -335,7 +318,6 @@ class Blinkenlights(BlinkenBase, UIBase):
                 s.gettf().setcolor(color)
             s._addline_unlocked(msg, s.gettf().getcolor())
             s.logwindow.refresh()
-            print 336
         finally:
             s.iolock.release()