rev 306 - offlineimap/head/offlineimap/ui

[email protected] Sat, 4 Jan 2003 23:55:40 -0600 (CST)
Newsgroups gmane.mail.imap.offlineimap.subversion
Message-ID <[email protected]>
Author: jgoerzen
Date: 2003-01-04 23:55:37 -0600 (Sat, 04 Jan 2003)
New Revision: 306

Modified:
   offlineimap/head/offlineimap/ui/Blinkenlights.py
   offlineimap/head/offlineimap/ui/Curses.py
Log:
Removed debug prints


Modified: offlineimap/head/offlineimap/ui/Blinkenlights.py
==============================================================================
--- offlineimap/head/offlineimap/ui/Blinkenlights.py	(original)
+++ offlineimap/head/offlineimap/ui/Blinkenlights.py	Sat Jan  4 23:55:39 2003
@@ -95,8 +95,6 @@
         
         s.tflock.acquire()
 
-        print "b98"
-
         try:
             if not accountname in s.threadframes:
                 s.threadframes[accountname] = {}
@@ -104,20 +102,14 @@
             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
         

Modified: offlineimap/head/offlineimap/ui/Curses.py
==============================================================================
--- offlineimap/head/offlineimap/ui/Curses.py	(original)
+++ offlineimap/head/offlineimap/ui/Curses.py	Sat Jan  4 23:55:39 2003
@@ -215,12 +215,8 @@
         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 @@
         return password
 
     def setupwindows(s, dolock = 1):
-        print 244
         if dolock:
             s.iolock.acquire()
         try:
@@ -257,25 +252,18 @@
             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 @@
 
     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 @@
             # 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 @@
                 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 @@
                 s.gettf().setcolor(color)
             s._addline_unlocked(msg, s.gettf().getcolor())
             s.logwindow.refresh()
-            print 336
         finally:
             s.iolock.release()