Update of /cvsroot/freevo/freevo/src/skins/main
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv21881

Modified Files:
        main.py 
Log Message:
add Unicode error warning

Index: main.py
===================================================================
RCS file: /cvsroot/freevo/freevo/src/skins/main/main.py,v
retrieving revision 1.40
retrieving revision 1.41
diff -C2 -d -r1.40 -r1.41
*** main.py     18 Feb 2004 21:54:03 -0000      1.40
--- main.py     22 Feb 2004 20:46:09 -0000      1.41
***************
*** 10,13 ****
--- 10,16 ----
  # -----------------------------------------------------------------------
  # $Log$
+ # Revision 1.41  2004/02/22 20:46:09  dischi
+ # add Unicode error warning
+ #
  # Revision 1.40  2004/02/18 21:54:03  dischi
  # small update needed for the new gui code
***************
*** 78,81 ****
--- 81,85 ----
  import os, copy
  import stat
+ import traceback
  
  import config
***************
*** 542,551 ****
              self.all_areas    = getattr(self, '%s_areas' % type)
              
-         self.last_draw = type, object, menu
  
!         self.screen.clear()
!         for a in self.all_areas:
!             a.draw(settings, object, menu, style, type, self.force_redraw)
  
!         osd.update([self.screen.show(self.force_redraw)])
!         self.force_redraw = False
--- 546,575 ----
              self.all_areas    = getattr(self, '%s_areas' % type)
              
  
!         self.last_draw = type, object, menu
  
!         try:
!             self.screen.clear()
!             for a in self.all_areas:
!                 a.draw(settings, object, menu, style, type, self.force_redraw)
!             if type == 'menu':
!                 x = 'ä'
!                 if x == u'ä':
!                     pass
!             osd.update([self.screen.show(self.force_redraw)])
!             self.force_redraw = False
!         except UnicodeError, e:
!             print 
'******************************************************************'
!             print 'Unicode Error: %s' % e
!             print 'Please report the following lines to the freevo mailing list'
!             print 'or with the subject \'[Freevo-Bugreport\] Unicode\' to'
!             print '[EMAIL PROTECTED]'
!             print
!             print traceback.print_exc()
!             print
!             print type, object
!             if type == 'menu':
!                 for i in object.menustack[-1].choices:
!                     print i
!             print
!             raise UnicodeError, e



-------------------------------------------------------
SF.Net is sponsored by: Speed Start Your Linux Apps Now.
Build and deploy apps & Web services for Linux with
a free DVD software kit from IBM. Click Now!
http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click
_______________________________________________
Freevo-cvslog mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/freevo-cvslog

Reply via email to