Author: duncan
Date: Sun Jun  3 12:21:43 2007
New Revision: 9644

Modified:
   branches/rel-1/freevo/src/plugins/headlines.py
   branches/rel-1/freevo/src/plugins/idlebar/weather.py
   branches/rel-1/freevo/src/plugins/lcd.py
   branches/rel-1/freevo/src/plugins/weather.py

Log:
Changed messages to use _debug_


Modified: branches/rel-1/freevo/src/plugins/headlines.py
==============================================================================
--- branches/rel-1/freevo/src/plugins/headlines.py      (original)
+++ branches/rel-1/freevo/src/plugins/headlines.py      Sun Jun  3 12:21:43 2007
@@ -177,7 +177,7 @@
 
         except:
             #unreachable or url error
-            print 'HEADLINES ERROR: could not open %s' % self.url
+            _debug_('HEADLINES ERROR: could not open %s' % self.url, -2)
             pass
 
         #write the file

Modified: branches/rel-1/freevo/src/plugins/idlebar/weather.py
==============================================================================
--- branches/rel-1/freevo/src/plugins/idlebar/weather.py        (original)
+++ branches/rel-1/freevo/src/plugins/idlebar/weather.py        Sun Jun  3 
12:21:43 2007
@@ -100,14 +100,14 @@
                     temperature,icon = newlist
                     cachefile.close()
                 except IOError:
-                    print 'WEATHER: error reading cache. Using fake weather.'
+                    _debug_('error reading cache. Using fake weather.', -1)
                     try:
                         cachefile = open(self.WEATHERCACHE,'w+')
                         cachefile.write('?' + '\n')
                         cachefile.write('sun.png' + '\n')
                         cachefile.close()
                     except IOError:
-                        print 'You have no permission to write %s' % 
self.WEATHERCACHE
+                        _debug_('You have no permission to write %s' % 
self.WEATHERCACHE, -2)
                     return '0', 'sun.png'
 
 

Modified: branches/rel-1/freevo/src/plugins/lcd.py
==============================================================================
--- branches/rel-1/freevo/src/plugins/lcd.py    (original)
+++ branches/rel-1/freevo/src/plugins/lcd.py    Sun Jun  3 12:21:43 2007
@@ -707,7 +707,7 @@
             self.animation_audioplayer_chars = ['-','\\','|','/']
         else:
             self.disable = 1
-            log.warning( "Unsupported LCDd version: %s" % ( self.version, ) )
+            log.warning("Unsupported LCDd version: %s" % (self.version,))
 
         plugin.register( self, "lcd" )
 
@@ -894,10 +894,10 @@
             try:
                 screens = layouts[ l ]
             except KeyError:
-                _debug_( _( "WARNING" ) + ": " + _( "Could not find screens 
for %d lines LCD!" ) % l )
+                _debug_("Could not find screens for %d lines LCD!" % (l), -1)
                 l -= 1
                 if l < 1:
-                    print String(_( "ERROR" )) + ": " + String(_( "No screens 
found for this LCD (%dx%d)!" )) % ( self.height, self.width )
+                    _debug_("No screens found for this LCD (%dx%d)!" % 
(self.height, self.width), -2)
                     self.disable = 1
                     return
         # find a display with 'l' line and 'c' columns
@@ -905,10 +905,10 @@
             try:
                 screens = layouts[ l ][ c ]
             except KeyError:
-                _debug_( _( "WARNING" ) + ": " + _( "Could not find screens 
for %d lines and %d columns LCD!" ) % ( l, c ) )
+                _debug_("Could not find screens for %d lines and %d columns 
LCD!" % (l, c), -1)
                 c -= 1
                 if c < 1:
-                    print String(_( "ERROR" )) + ": " + String(_( "No screens 
found for this LCD (%dx%d)!" )) % ( self.height, self.width )
+                    _debug_("No screens found for this LCD (%dx%d)!" % 
(self.height, self.width), -2)
                     self.disable = 1
                     return
 
@@ -918,8 +918,8 @@
         try:
             self.screens = screens = layouts[ l ][ c ]
         except KeyError:
-            _debug_( _( "WARNING" ) + ": " + _( "Could not find screens for %d 
lines and %d columns LCD!" ) % ( self.height, self.width ))
-            print String(_( "ERROR" )) + ": " + String(_( "No screens found 
for this LCD (%dx%d)!" )) % ( self.height, self.width )
+            _debug_("Could not find screens for %d lines and %d columns LCD!" 
% (self.height, self.width), -1)
+            _debug_("No screens found for this LCD (%dx%d)!" % (self.height, 
self.width), -2)
             self.disable = 1
             return
 

Modified: branches/rel-1/freevo/src/plugins/weather.py
==============================================================================
--- branches/rel-1/freevo/src/plugins/weather.py        (original)
+++ branches/rel-1/freevo/src/plugins/weather.py        Sun Jun  3 12:21:43 2007
@@ -412,7 +412,7 @@
         try:
             size = int(os.stat(self.mapFile)[6])
         except:
-            print "Weather ERROR: failed attempting to load %s radar map from 
cache" % (self.location,)
+            _debug_("failed attempting to load %s radar map from cache" % 
(self.location,), -2)
             pass
         else:
             imgfd = os.open(self.mapFile, os.R_OK)

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Freevo-cvslog mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/freevo-cvslog

Reply via email to