[Freevo-devel] cvsfreevocachecrash

2004-02-21 Thread Robert Winder
Hi,

checked out freevo cvs and updated to latest mmpython and cleaned the
cache in /var/cache/freevo/*

But running ./freevo cache it crashed like this.

creating audio metadata...
Traceback (most recent call last):
  File /usr/local/freevocvs/src/helpers/cache.py, line 490, in ?
create_metadata()
  File /usr/local/freevocvs/src/helpers/cache.py, line 287, in create_metadata
util.extendedmeta.AudioParser(dir[1], rescan=True)
  File /usr/local/freevocvs/src/util/extendedmeta.py, line 204, in __init__
d = AudioParser(subdir, force=True, rescan=rescan)
  File /usr/local/freevocvs/src/util/extendedmeta.py, line 216, in __init__
setattr(self, type, self.strcmp(getattr(self, type), data[type]))
  File /usr/local/freevocvs/src/util/extendedmeta.py, line 243, in strcmp
if s1.replace(' ', '').lower() == s2.replace(' ', '').lower():
UnicodeDecodeError: 'ascii' codec can't decode byte 0xff in position 0: ordinal not in 
range(128)



   /Robert  



---
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=1356alloc_id=3438op=click
___
Freevo-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/freevo-devel


Re: [Freevo-devel] cvsfreevocachecrash

2004-02-21 Thread Aubin Paul
I ran into this too... one of my FXD files has as '1/2' (the single
character) and it crashes like this.

On Sat, Feb 21, 2004 at 01:06:03PM +0100, Robert Winder wrote:
 Hi,
 
 checked out freevo cvs and updated to latest mmpython and cleaned the
 cache in /var/cache/freevo/*
 
 But running ./freevo cache it crashed like this.
 
 creating audio metadata...
 Traceback (most recent call last):
   File /usr/local/freevocvs/src/helpers/cache.py, line 490, in ?
 create_metadata()
   File /usr/local/freevocvs/src/helpers/cache.py, line 287, in create_metadata
 util.extendedmeta.AudioParser(dir[1], rescan=True)
   File /usr/local/freevocvs/src/util/extendedmeta.py, line 204, in __init__
 d = AudioParser(subdir, force=True, rescan=rescan)
   File /usr/local/freevocvs/src/util/extendedmeta.py, line 216, in __init__
 setattr(self, type, self.strcmp(getattr(self, type), data[type]))
   File /usr/local/freevocvs/src/util/extendedmeta.py, line 243, in strcmp
 if s1.replace(' ', '').lower() == s2.replace(' ', '').lower():
 UnicodeDecodeError: 'ascii' codec can't decode byte 0xff in position 0: ordinal not 
 in range(128)
 
 
 
/Robert  
 
 
 
 ---
 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=1356alloc_id=3438op=click
 ___
 Freevo-devel mailing list
 [EMAIL PROTECTED]
 https://lists.sourceforge.net/lists/listinfo/freevo-devel


---
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=1356alloc_id=3438op=click
___
Freevo-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/freevo-devel


Re: [Freevo-devel] cvsfreevocachecrash

2004-02-21 Thread Robert Winder
Thanks Aubin, but removed all fxd files but still getting the error.

But got lots of mp3 files in this format.

Galactic - We Love 'Em Tonight _ 07 _ Baker's Dozen.mp3

note the underscore and the ' ' surrounding them. Could this be causing
the crash. ?

Still breaking my head over over mmpython and how this replace is done. ;-)


 /Robert 

Saturday, February 21, 2004, 3:40:49 PM, Aubin wrote:

 I ran into this too... one of my FXD files has as '1/2' (the single
 character) and it crashes like this.

 On Sat, Feb 21, 2004 at 01:06:03PM +0100, Robert Winder wrote:
 Hi,
 
 checked out freevo cvs and updated to latest mmpython and cleaned the
 cache in /var/cache/freevo/*
 
 But running ./freevo cache it crashed like this.
 
 creating audio metadata...
 Traceback (most recent call last):
   File /usr/local/freevocvs/src/helpers/cache.py, line 490, in ?
 create_metadata()
   File /usr/local/freevocvs/src/helpers/cache.py, line 287, in create_metadata
 util.extendedmeta.AudioParser(dir[1], rescan=True)
   File /usr/local/freevocvs/src/util/extendedmeta.py, line 204, in __init__
 d = AudioParser(subdir, force=True, rescan=rescan)
   File /usr/local/freevocvs/src/util/extendedmeta.py, line 216, in __init__
 setattr(self, type, self.strcmp(getattr(self, type), data[type]))
   File /usr/local/freevocvs/src/util/extendedmeta.py, line 243, in strcmp
 if s1.replace(' ', '').lower() == s2.replace(' ', '').lower():
 UnicodeDecodeError: 'ascii' codec can't decode byte 0xff in
 position 0: ordinal not in range(128)
 
 
 
/Robert  
 
 
 
 ---
 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=1356alloc_id=3438op=click
 ___
 Freevo-devel mailing list
 [EMAIL PROTECTED]
 https://lists.sourceforge.net/lists/listinfo/freevo-devel


 ---
 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=1356alloc_id=3438op=click
 ___
 Freevo-devel mailing list
 [EMAIL PROTECTED]
 https://lists.sourceforge.net/lists/listinfo/freevo-devel




  
 



---
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=1356alloc_id=3438op=click
___
Freevo-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/freevo-devel


[Freevo-cvslog] freevo/src/gui ProgressBox.py,1.3,1.4

2004-02-21 Thread dischi
Update of /cvsroot/freevo/freevo/src/gui
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv25018

Modified Files:
ProgressBox.py 
Log Message:
bugfix when setting width

Index: ProgressBox.py
===
RCS file: /cvsroot/freevo/freevo/src/gui/ProgressBox.py,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -d -r1.3 -r1.4
*** ProgressBox.py  18 Feb 2004 21:52:04 -  1.3
--- ProgressBox.py  21 Feb 2004 19:32:32 -  1.4
***
*** 10,13 
--- 10,16 
  # ---
  # $Log$
+ # Revision 1.4  2004/02/21 19:32:32  dischi
+ # bugfix when setting width
+ #
  # Revision 1.3  2004/02/18 21:52:04  dischi
  # Major GUI update:
***
*** 71,75 
icon, vertical_expansion, text_prop, parent)
  
! self.progressbar = Progressbar(full=full, width=self.width-20)
  self.add_child(self.progressbar)
  
--- 74,78 
icon, vertical_expansion, text_prop, parent)
  
! self.progressbar = Progressbar(full=full, width=self.content.width-20)
  self.add_child(self.progressbar)
  



---
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=1356alloc_id=3438op=click
___
Freevo-cvslog mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/freevo-cvslog


[Freevo-cvslog] freevo/src/gui InputBox.py,1.14,1.15 LetterBoxGroup.py,1.14,1.15 __init__.py,1.12,1.13 LetterBox.py,1.15,NONE PasswordInputBox.py,1.9,NONE PasswordLetterBox.py,1.6,NONE

2004-02-21 Thread dischi
Update of /cvsroot/freevo/freevo/src/gui
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv25173

Modified Files:
InputBox.py LetterBoxGroup.py __init__.py 
Removed Files:
LetterBox.py PasswordInputBox.py PasswordLetterBox.py 
Log Message:
enhance input box, merge password and normal input

Index: InputBox.py
===
RCS file: /cvsroot/freevo/freevo/src/gui/InputBox.py,v
retrieving revision 1.14
retrieving revision 1.15
diff -C2 -d -r1.14 -r1.15
*** InputBox.py 18 Feb 2004 21:52:04 -  1.14
--- InputBox.py 21 Feb 2004 19:33:24 -  1.15
***
*** 11,14 
--- 11,17 
  # ---
  # $Log$
+ # Revision 1.15  2004/02/21 19:33:24  dischi
+ # enhance input box, merge password and normal input
+ #
  # Revision 1.14  2004/02/18 21:52:04  dischi
  # Major GUI update:
***
*** 66,69 
--- 69,73 
  heightInteger
  text  String to print.
+ type  'normal' or 'password'
  icon  icon
  text_prop A dict of 3 elements composing text proprieties:
***
*** 74,78 
  
  
! def __init__(self, text, handler=None, x=None, y=None, width=0, height=0,
   icon=None, vertical_expansion=1, text_prop=None, parent='osd'):
  
--- 78,82 
  
  
! def __init__(self, text, handler=None, type='text', x=None, y=None, width=0, 
height=0,
   icon=None, vertical_expansion=1, text_prop=None, parent='osd'):
  
***
*** 80,118 
icon, vertical_expansion, text_prop, parent)
  
! self.lbg = LetterBoxGroup()
  self.add_child(self.lbg)
! 
  
  def eventhandler(self, event):
  
! if event == INPUT_LEFT:
! self.lbg.change_selected_box('left')
! self.draw(update=True)
! 
! elif event == INPUT_RIGHT:
! self.lbg.change_selected_box('right')
! self.draw(update=True)
! 
! elif event == INPUT_ENTER:
  self.destroy()
! if self.handler: self.handler(self.lbg.get_word())
  
! elif event == INPUT_EXIT:
  self.destroy()
  
! elif event == INPUT_UP:
! self.lbg.get_selected_box().charUp()
! self.draw(update=True)
! 
! elif event == INPUT_DOWN:
! self.lbg.get_selected_box().charDown()
! self.draw(update=True)
! 
! elif event in (INPUT_0, INPUT_1, INPUT_2, INPUT_3,
!INPUT_4, INPUT_5, INPUT_6, INPUT_7,
!INPUT_8, INPUT_9, INPUT_0 ):
! self.lbg.get_selected_box().cycle_phone_char(event.arg)
! self.draw(update=True)
! else:
! return self.parent.eventhandler(event)
! 
--- 84,105 
icon, vertical_expansion, text_prop, parent)
  
! self.lbg = LetterBoxGroup(type=type)
  self.add_child(self.lbg)
! 
  
  def eventhandler(self, event):
+ if self.lbg.eventhandler(event):
+ self.draw()
+ return True
  
! if event == INPUT_ENTER:
  self.destroy()
! if self.handler:
! self.handler(self.lbg.get_word())
! return True
  
! if event == INPUT_EXIT:
  self.destroy()
+ return True
  
! return self.parent.eventhandler(event)

Index: LetterBoxGroup.py
===
RCS file: /cvsroot/freevo/freevo/src/gui/LetterBoxGroup.py,v
retrieving revision 1.14
retrieving revision 1.15
diff -C2 -d -r1.14 -r1.15
*** LetterBoxGroup.py   18 Feb 2004 21:52:04 -  1.14
--- LetterBoxGroup.py   21 Feb 2004 19:33:24 -  1.15
***
*** 11,14 
--- 11,17 
  # ---
  # $Log$
+ # Revision 1.15  2004/02/21 19:33:24  dischi
+ # enhance input box, merge password and normal input
+ #
  # Revision 1.14  2004/02/18 21:52:04  dischi
  # Major GUI update:
***
*** 53,66 
  import config
  
! from Container  import Container
! from LayoutManagers import LayoutManager
! from LetterBox  import * 
! from PasswordLetterBox  import * 
! 
  
  class LetterBoxGroup(Container):
  
! left  x coordinate. Integer
! top   y coordinate. Integer
  width Integer
  heightInteger
--- 56,69 
  import config
  
! from GUIObject   import Align
! from Container   import Container
! from LayoutManagers  import LayoutManager
! from Button  import Button
! from event   import *
  
  class LetterBoxGroup(Container):
  
! x x coordinate. Integer
! y y coordinate. Integer
  width Integer
  heightInteger
***
*** 73,84 
 

[Freevo-cvslog] freevo/src/tv program_search.py,1.12,1.13

2004-02-21 Thread dischi
Update of /cvsroot/freevo/freevo/src/tv
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv25231

Modified Files:
program_search.py 
Log Message:
use eventhandler from letter box

Index: program_search.py
===
RCS file: /cvsroot/freevo/freevo/src/tv/program_search.py,v
retrieving revision 1.12
retrieving revision 1.13
diff -C2 -d -r1.12 -r1.13
*** program_search.py   18 Feb 2004 21:55:11 -  1.12
--- program_search.py   21 Feb 2004 19:33:56 -  1.13
***
*** 12,15 
--- 12,18 
  # ---
  # $Log$
+ # Revision 1.13  2004/02/21 19:33:56  dischi
+ # use eventhandler from letter box
+ #
  # Revision 1.12  2004/02/18 21:55:11  dischi
  # update to new gui code
***
*** 161,199 
  
  if self.get_selected_child() == self.lbg:
! if event == em.INPUT_LEFT:
! self.lbg.change_selected_box('left')
! self.draw()
! return
! 
! elif event == em.INPUT_RIGHT:
! self.lbg.change_selected_box('right')
  self.draw()
! return
  
! elif event == em.INPUT_ENTER:
  self.searchProg(self.lbg.get_word())
  self.draw()
! return
! 
! elif event == em.INPUT_UP:
! self.lbg.get_selected_box().charUp()
! self.draw()
! return
! 
! elif event == em.INPUT_DOWN:
! self.lbg.get_selected_box().charDown()
! self.draw()
! return
  
! elif event == em.MENU_PAGEDOWN:
  self.lbg.get_selected_box().toggle_selected()
  self.results.toggle_selected_index(0)
  self.draw()
! return
! 
! elif event in em.INPUT_ALL_NUMBERS:
! self.lbg.get_selected_box().cycle_phone_char(event)
! self.draw()
! return
  
  elif self.get_selected_child() == self.results:
--- 164,181 
  
  if self.get_selected_child() == self.lbg:
! if self.lbg.eventhandler(event):
  self.draw()
! return True
  
! if event == em.INPUT_ENTER:
  self.searchProg(self.lbg.get_word())
  self.draw()
! return True
  
! if event == em.MENU_PAGEDOWN:
  self.lbg.get_selected_box().toggle_selected()
  self.results.toggle_selected_index(0)
  self.draw()
! return True
  
  elif self.get_selected_child() == self.results:



---
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=1356alloc_id=3438op=click
___
Freevo-cvslog mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/freevo-cvslog


[Freevo-cvslog] freevo/src/gui VideoBox.py,1.3,NONE Image.py,1.5,NONE

2004-02-21 Thread dischi
Update of /cvsroot/freevo/freevo/src/gui
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv25370

Removed Files:
VideoBox.py Image.py 
Log Message:
moved to WIP/gui

--- VideoBox.py DELETED ---

--- Image.py DELETED ---



---
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=1356alloc_id=3438op=click
___
Freevo-cvslog mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/freevo-cvslog


[Freevo-cvslog] freevo/share/skins/main basic.fxd,1.7,1.8 blurr2.fxd,1.46,1.47

2004-02-21 Thread dischi
Update of /cvsroot/freevo/freevo/share/skins/main
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv25758/main

Modified Files:
basic.fxd blurr2.fxd 
Log Message:
make larger border

Index: basic.fxd
===
RCS file: /cvsroot/freevo/freevo/share/skins/main/basic.fxd,v
retrieving revision 1.7
retrieving revision 1.8
diff -C2 -d -r1.7 -r1.8
*** basic.fxd   18 Feb 2004 21:56:30 -  1.7
--- basic.fxd   21 Feb 2004 19:36:28 -  1.8
***
*** 276,289 
  layout label=popup
background
! rectangle color=0x00 size=1 bgcolor=widget background/
/background
content type=text spacing=10 color=widget text font=widget
!-- basic widget information --
  item type=widget font=widget
!   rectangle color=0xff bgcolor=widget item background/
/item
!-- selected widgets --
  item type=selected font=selected widget
!   rectangle color=0x00 bgcolor=widget selected background/
/item
!-- special button settings --
--- 276,289 
  layout label=popup
background
! rectangle color=0x00 size=2 bgcolor=widget background/
/background
content type=text spacing=10 color=widget text font=widget
!-- basic widget information --
  item type=widget font=widget
!   rectangle color=0xff bgcolor=widget item background size=2/
/item
!-- selected widgets --
  item type=selected font=selected widget
!   rectangle color=0x00 bgcolor=widget selected background size=2/
/item
!-- special button settings --

Index: blurr2.fxd
===
RCS file: /cvsroot/freevo/freevo/share/skins/main/blurr2.fxd,v
retrieving revision 1.46
retrieving revision 1.47
diff -C2 -d -r1.46 -r1.47
*** blurr2.fxd  18 Feb 2004 21:56:30 -  1.46
--- blurr2.fxd  21 Feb 2004 19:36:28 -  1.47
***
*** 656,663 
  background
  rectangle x=5 y=5 size=0 bgcolor=0xa000 radius=5/
! rectangle width=max-5 height=max-5 color=0x00 size=1 
  bgcolor=0xff radius=5/
! rectangle x=3 y=3 width=max-11 height=max-11 
color=0x00 
!   size=1 bgcolor=widget background radius=5/
  /background
  content x=8 y=8 width=max-21 height=max-21
--- 656,663 
  background
  rectangle x=5 y=5 size=0 bgcolor=0xa000 radius=5/
! rectangle width=max-5 height=max-5 color=0x00 size=2 
  bgcolor=0xff radius=5/
! rectangle x=5 y=5 width=max-15 height=max-15 
color=0x00 
!   size=2 bgcolor=widget background radius=5/
  /background
  content x=8 y=8 width=max-21 height=max-21



---
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=1356alloc_id=3438op=click
___
Freevo-cvslog mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/freevo-cvslog


[Freevo-cvslog] freevo/src/gui Button.py,1.18,1.19

2004-02-21 Thread dischi
Update of /cvsroot/freevo/freevo/src/gui
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv25819

Modified Files:
Button.py 
Log Message:
only draw border when needed

Index: Button.py
===
RCS file: /cvsroot/freevo/freevo/src/gui/Button.py,v
retrieving revision 1.18
retrieving revision 1.19
diff -C2 -d -r1.18 -r1.19
*** Button.py   18 Feb 2004 21:52:04 -  1.18
--- Button.py   21 Feb 2004 19:37:01 -  1.19
***
*** 10,13 
--- 10,16 
  # ---
  # $Log$
+ # Revision 1.19  2004/02/21 19:37:01  dischi
+ # only draw border when needed
+ #
  # Revision 1.18  2004/02/18 21:52:04  dischi
  # Major GUI update:
***
*** 149,155 
  
  self.surface = self.get_surface()
! self.osd.drawroundbox(0, 0, self.width, self.height,
!   rect.bgcolor, rect.size, rect.color,
!   rect.radius, self.surface)
  Container._draw(self)
  
--- 152,163 
  
  self.surface = self.get_surface()
! if not self.border:
! self.osd.drawroundbox(0, 0, self.width, self.height,
!   rect.bgcolor, rect.size, rect.color,
!   rect.radius, self.surface)
! else:
! self.osd.drawroundbox(0, 0, self.width, self.height,
!   rect.bgcolor, 0, rect.color,
!   0, self.surface)
  Container._draw(self)
  



---
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=1356alloc_id=3438op=click
___
Freevo-cvslog mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/freevo-cvslog


[Freevo-cvslog] freevo/src directory.py,1.118,1.119

2004-02-21 Thread dischi
Update of /cvsroot/freevo/freevo/src
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv26176/src

Modified Files:
directory.py 
Log Message:
use new gui box for password


Index: directory.py
===
RCS file: /cvsroot/freevo/freevo/src/directory.py,v
retrieving revision 1.118
retrieving revision 1.119
diff -C2 -d -r1.118 -r1.119
*** directory.py16 Feb 2004 17:57:04 -  1.118
--- directory.py21 Feb 2004 19:39:04 -  1.119
***
*** 10,13 
--- 10,16 
  # ---
  # $Log$
+ # Revision 1.119  2004/02/21 19:39:04  dischi
+ # use new gui box for password
+ #
  # Revision 1.118  2004/02/16 17:57:04  dischi
  # use ucmp to compare
***
*** 143,147 
  from playlist import Playlist
  from event import *
! from gui import PasswordInputBox, AlertBox, ProgressBox
  
  all_variables = [('DIRECTORY_SORT_BY_DATE', _('Directory Sort By Date'),
--- 146,150 
  from playlist import Playlist
  from event import *
! from gui import InputBox, AlertBox, ProgressBox
  
  all_variables = [('DIRECTORY_SORT_BY_DATE', _('Directory Sort By Date'),
***
*** 566,570 
  self.arg   = arg
  self.menuw = menuw
!   pb = PasswordInputBox(text=_('Enter Password'), handler=self.pass_cmp_cb)
pb.show()
else:
--- 569,574 
  self.arg   = arg
  self.menuw = menuw
!   pb = InputBox(text=_('Enter Password'), handler=self.pass_cmp_cb,
!   type='password')
pb.show()
else:



---
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=1356alloc_id=3438op=click
___
Freevo-cvslog mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/freevo-cvslog


[Freevo-cvslog] freevo/src/util extendedmeta.py,1.8,1.9

2004-02-21 Thread dischi
Update of /cvsroot/freevo/freevo/src/util
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv27078

Modified Files:
extendedmeta.py 
Log Message:
unicode fix

Index: extendedmeta.py
===
RCS file: /cvsroot/freevo/freevo/src/util/extendedmeta.py,v
retrieving revision 1.8
retrieving revision 1.9
diff -C2 -d -r1.8 -r1.9
*** extendedmeta.py 13 Feb 2004 17:33:42 -  1.8
--- extendedmeta.py 21 Feb 2004 19:44:05 -  1.9
***
*** 11,14 
--- 11,17 
  # ---
  # $Log$
+ # Revision 1.9  2004/02/21 19:44:05  dischi
+ # unicode fix
+ #
  # Revision 1.8  2004/02/13 17:33:42  dischi
  # no defaults for addPathDB
***
*** 236,244 
  
  def strcmp(self, s1, s2):
  if not s1 or not s2:
  return s1 or s2
  if s1 == various or s2 == various:
  return various
! # print 'cmp: %s %s ' % ( s1, s2)
  if s1.replace(' ', '').lower() == s2.replace(' ', '').lower():
  return s1
--- 239,250 
  
  def strcmp(self, s1, s2):
+ s1 = Unicode(s1)
+ s2 = Unicode(s2)
+ 
  if not s1 or not s2:
  return s1 or s2
  if s1 == various or s2 == various:
  return various
! 
  if s1.replace(' ', '').lower() == s2.replace(' ', '').lower():
  return s1



---
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=1356alloc_id=3438op=click
___
Freevo-cvslog mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/freevo-cvslog


[Freevo-devel] Re: cvsfreevocachecrash

2004-02-21 Thread Dirk Meyer
Robert Winder wrote:
 creating audio metadata...
 Traceback (most recent call last):
   File /usr/local/freevocvs/src/helpers/cache.py, line 490, in ?
 create_metadata()
   File /usr/local/freevocvs/src/helpers/cache.py, line 287, in create_metadata
 util.extendedmeta.AudioParser(dir[1], rescan=True)
   File /usr/local/freevocvs/src/util/extendedmeta.py, line 204, in __init__
 d = AudioParser(subdir, force=True, rescan=rescan)
   File /usr/local/freevocvs/src/util/extendedmeta.py, line 216, in __init__
 setattr(self, type, self.strcmp(getattr(self, type), data[type]))
   File /usr/local/freevocvs/src/util/extendedmeta.py, line 243, in strcmp
 if s1.replace(' ', '').lower() == s2.replace(' ', '').lower():
 UnicodeDecodeError: 'ascii' codec can't decode byte 0xff in position 0: ordinal not 
 in range(128)

Fixed. They may be more Unicode errors in the code. Always post them
here to eleminate them.


Dischi

-- 
Hey! It compiles! Ship it!


---
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=1356alloc_id=3438op=click
___
Freevo-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/freevo-devel


[Freevo-cvslog] freevo/src/skins/main tvlisting_area.py,1.17,1.18

2004-02-21 Thread dischi
Update of /cvsroot/freevo/freevo/src/skins/main
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv28397

Modified Files:
tvlisting_area.py 
Log Message:
unicode fix

Index: tvlisting_area.py
===
RCS file: /cvsroot/freevo/freevo/src/skins/main/tvlisting_area.py,v
retrieving revision 1.17
retrieving revision 1.18
diff -C2 -d -r1.17 -r1.18
*** tvlisting_area.py   4 Feb 2004 23:01:10 -   1.17
--- tvlisting_area.py   21 Feb 2004 19:50:39 -  1.18
***
*** 10,13 
--- 10,16 
  # ---
  # $Log$
+ # Revision 1.18  2004/02/21 19:50:39  dischi
+ # unicode fix
+ #
  # Revision 1.17  2004/02/04 23:01:10  outlyer
  # Remove some debugging Dischi left in... but the good news is the @*!
***
*** 371,377 
  # TODO:
  #* This is going to be SLOW for large schedules
! #* We should have a skin setting for recording background 
color
  #* I dunno what else.
! #   I will work on this soon, but think of this as a proof of 
concept.
  if recordingshows:
  for recprogs in recordingshows:
--- 374,382 
  # TODO:
  #* This is going to be SLOW for large schedules
! #* We should have a skin setting for recording
! #  background color
  #* I dunno what else.
! #   I will work on this soon, but think of this as a
! #   proof of concept.
  if recordingshows:
  for recprogs in recordingshows:
***
*** 379,383 
  val = selected_val
  
! if prg.title == _('This channel has no data loaded'):
  val = copy.copy(val)
  val.align='center'
--- 384,388 
  val = selected_val
  
! if prg.title == Unicode(_('This channel has no data loaded')):
  val = copy.copy(val)
  val.align='center'



---
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=1356alloc_id=3438op=click
___
Freevo-cvslog mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/freevo-cvslog


[Freevo-cvslog] freevo/src/skins/main tvlisting_area.py,1.18,1.19

2004-02-21 Thread dischi
Update of /cvsroot/freevo/freevo/src/skins/main
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv31215

Modified Files:
tvlisting_area.py 
Log Message:
unicode fix (again)

Index: tvlisting_area.py
===
RCS file: /cvsroot/freevo/freevo/src/skins/main/tvlisting_area.py,v
retrieving revision 1.18
retrieving revision 1.19
diff -C2 -d -r1.18 -r1.19
*** tvlisting_area.py   21 Feb 2004 19:50:39 -  1.18
--- tvlisting_area.py   21 Feb 2004 20:03:45 -  1.19
***
*** 10,13 
--- 10,16 
  # ---
  # $Log$
+ # Revision 1.19  2004/02/21 20:03:45  dischi
+ # unicode fix (again)
+ #
  # Revision 1.18  2004/02/21 19:50:39  dischi
  # unicode fix
***
*** 384,391 
  val = selected_val
  
! if prg.title == Unicode(_('This channel has no data loaded')):
! val = copy.copy(val)
! val.align='center'
! 
  if x0  x1:
  break
--- 387,397 
  val = selected_val
  
! try:
! if prg.title == _('This channel has no data loaded'):
! val = copy.copy(val)
! val.align='center'
! except UnicodeError:
! pass
! 
  if x0  x1:
  break



---
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=1356alloc_id=3438op=click
___
Freevo-cvslog mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/freevo-cvslog


[Freevo-wikilog] [Freevo Wiki] Update of RecordingInfo

2004-02-21 Thread freevo-wikilog
Dear Wiki user,

You have subscribed to a wiki page or wiki category on Freevo Wiki for change 
notification.

The following page has been changed by 213.193.166.120:
http://freevo.sourceforge.net/cgi-bin/moin.cgi/RecordingInfo

The comment on the change is:
Change alsa record script to unmute after recording

--
@@ -133,7 +133,7 @@
 $AMIXER -q cset numid=30 1  # select capture source, 30 is capture source 
control, 1 = CD and 4 = line
 $AMIXER -q cset numid=31 1  # set capture source switch to 1 (= on)
 $NICE $MENCODER tv:// $TV $VIDEO $AUDIO -endpos $TIME -ffourcc divx -o  $NAME.avi
-
+$AMIXER -q sset CD 87% unmute   # unmute cd again to hear sound when using watching 
tv after recording
 }}}
 
 Some things to note:


---
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=1356alloc_id=3438op=click
___
Freevo-wikilog mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/freevo-wikilog


[Freevo-wikilog] [Freevo Wiki] Update of BugList

2004-02-21 Thread freevo-wikilog
Dear Wiki user,

You have subscribed to a wiki page or wiki category on Freevo Wiki for change 
notification.

The following page has been changed by 80.139.57.61:
http://freevo.sourceforge.net/cgi-bin/moin.cgi/BugList

The comment on the change is:
speed limit may cause problems [EMAIL PROTECTED]

--
@@ -17,11 +17,16 @@
 Good Luck
 
 
+CD Audio Playback stutters
 
-You may find that shows with spaces in their names are recorded as a file called the 
first word ie The News would create a file called The rather that The 
News--2003-08-10-0035.avi. If you find this, add in some quotation marks around the 
filename setting in local_conf.py ie '-o %(filename)s.avi '.
+On my MSI Combo drive the mplayer started from Freevo will stutter on Audio CDs, but 
mplayer and xmms perfeclty well work. The reason is the short buffer and the limit to 
a single speed setting. If I set the speed= parameter to 8 instead of 1, it works.
 
 
+Movie view
+
+You may find that shows with spaces in their names are recorded as a file called the 
first word ie The News would create a file called The rather that The 
News--2003-08-10-0035.avi. If you find this, add in some quotation marks around the 
filename setting in local_conf.py ie '-o %(filename)s.avi '.
 
+
 The EPG should be reloaded automatically to allow program end/start
 
 


---
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=1356alloc_id=3438op=click
___
Freevo-wikilog mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/freevo-wikilog


Re: [Freevo-devel] Re: [Freevo-cvslog] freevo/src/www/htdocs edit_favorite.rpy,1.9,1.10 favorites.rpy,1.10,1.11 genre.rpy,1.5,1.6 guide.rpy,1.21,1.22 iceslistchanger.rpy,1.4,1.5 index.rpy,1.11,1.12 library.rpy,1.19,1.20 manualrecord.rpy,1.9,1.10 record.rpy,1.10,1.11 search.rpy,1.14,1.15 wap_login.rpy,1.2,1.3 wap_rec.rpy,1.3,1.4

2004-02-21 Thread Gustavo Sverzut Barbieri
 --- Michael Ruelle [EMAIL PROTECTED] escreveu: 
 THe guide appears to be very broken
 
 it looks like you embedded _('') things in the middle of a  ...
 
 string which has a sprintf conversion at the end. this causes an
 error
 about not all the arguments being converted. If i remove the _()
 things
 i get past that error.

I'll look at it.


 The next error i can't figure out:
 exceptions.UnicodeDecodeError: 'ascii' codec can't decode byte 0xe1
 in
 position 109: ordinal not in range(128)
 
 it comes from:
 248 def tableCell(self, data='', opts=''):
 249self.res += td +opts++data+/td\n
 
 with data set as:
 'S\xe1bado Gigante raquo;'
 
 So i have no idea how to deal with it.

If you come to that, please replace data with Unicode(data) or
String(data), depending on the context. In the webinterface, you should
use Unicode(data).

I'll fix that together with the previous error.

 
 I am willing to bet genre.rpy has similar problems since it uses alot
 of
 similar code.

Ok.

Gustavo

__

Yahoo! Mail - O melhor e-mail do Brasil! Abra sua conta agora:
http://br.yahoo.com/info/mail.html


---
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=1356alloc_id=3438op=click
___
Freevo-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/freevo-devel


[Freevo-cvslog] freevo/src/tv epg_types.py,1.12,1.13

2004-02-21 Thread gsbarbieri
Update of /cvsroot/freevo/freevo/src/tv
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv8448/src/tv

Modified Files:
epg_types.py 
Log Message:
Better unicode support.


Index: epg_types.py
===
RCS file: /cvsroot/freevo/freevo/src/tv/epg_types.py,v
retrieving revision 1.12
retrieving revision 1.13
diff -C2 -d -r1.12 -r1.13
*** epg_types.py18 Oct 2003 09:32:40 -  1.12
--- epg_types.py22 Feb 2004 06:18:20 -  1.13
***
*** 11,14 
--- 11,17 
  # ---
  # $Log$
+ # Revision 1.13  2004/02/22 06:18:20  gsbarbieri
+ # Better unicode support.
+ #
  # Revision 1.12  2003/10/18 09:32:40  dischi
  # add var scheduled to TvProgram
***
*** 117,127 
  
  if attr == 'start':
! return time.strftime(config.TV_TIMEFORMAT, time.localtime(self.start))
  if attr == 'stop':
! return time.strftime(config.TV_TIMEFORMAT, time.localtime(self.stop))
  if attr == 'date':
! return time.strftime(config.TV_DATEFORMAT, time.localtime(self.start))
  if hasattr(self, attr):
! return str(getattr(self,attr))
  return ''
  
--- 120,130 
  
  if attr == 'start':
! return Unicode(time.strftime(config.TV_TIMEFORMAT, 
time.localtime(self.start)))
  if attr == 'stop':
! return Unicode(time.strftime(config.TV_TIMEFORMAT, 
time.localtime(self.stop)))
  if attr == 'date':
! return Unicode(time.strftime(config.TV_DATEFORMAT, 
time.localtime(self.start)))
  if hasattr(self, attr):
! return getattr(self,attr)
  return ''
  
***
*** 153,157 
  s += '\n'
  for program in self.programs:
! s += '   ' + str(program) + '\n'
  else:
  s += ' NO DATA\n'
--- 156,160 
  s += '\n'
  for program in self.programs:
! s += '   ' + String(program) + '\n'
  else:
  s += ' NO DATA\n'
***
*** 269,273 
  
  for chan in self.chan_list:
! s += str(chan)
  
  return s
--- 272,276 
  
  for chan in self.chan_list:
! s += String(chan)
  
  return s



---
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=1356alloc_id=3438op=click
___
Freevo-cvslog mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/freevo-cvslog


[Freevo-cvslog] freevo/src/tv epg_xmltv.py,1.44,1.45

2004-02-21 Thread gsbarbieri
Update of /cvsroot/freevo/freevo/src/tv
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv8924/src/tv

Modified Files:
epg_xmltv.py 
Log Message:
Handle info in unicode (don't need to convert to string anymore).
People envolved to Record  Favorites, please test it and ensure it works.


Index: epg_xmltv.py
===
RCS file: /cvsroot/freevo/freevo/src/tv/epg_xmltv.py,v
retrieving revision 1.44
retrieving revision 1.45
diff -C2 -d -r1.44 -r1.45
*** epg_xmltv.py19 Feb 2004 04:57:57 -  1.44
--- epg_xmltv.py22 Feb 2004 06:22:16 -  1.45
***
*** 10,13 
--- 10,17 
  # ---
  # $Log$
+ # Revision 1.45  2004/02/22 06:22:16  gsbarbieri
+ # Handle info in unicode (don't need to convert to string anymore).
+ # People envolved to Record  Favorites, please test it and ensure it works.
+ #
  # Revision 1.44  2004/02/19 04:57:57  gsbarbieri
  # Support Web Interface i18n.
***
*** 364,378 
  
  for p in xmltv_programs:
! if not p['channel'].encode(config.LOCALE, 'ignore') in needed_ids:
  continue
  prog = epg_types.TvProgram()
! prog.channel_id = p['channel'].encode(config.LOCALE, 'ignore')
! prog.title = p['title'][0][0].encode(config.LOCALE, 'ignore')
  if p.has_key('category'):
!  prog.categories = [ cat[0].encode(config.LOCALE, 'ignore') for cat in 
p['category'] ]
  if p.has_key('desc'):
! prog.desc = util.format_text(p['desc'][0][0].encode(config.LOCALE, 
'ignore'))
  if p.has_key('sub-title'):
! prog.sub_title = p['sub-title'][0][0].encode(config.LOCALE, 'ignore')
  try:
  prog.start = timestr2secs_utc(p['start'])
--- 368,382 
  
  for p in xmltv_programs:
! if not p['channel'] in needed_ids:
  continue
  prog = epg_types.TvProgram()
! prog.channel_id = p['channel']
! prog.title = p['title'][0][0]
  if p.has_key('category'):
!  prog.categories = [ cat[0] for cat in p['category'] ]
  if p.has_key('desc'):
! prog.desc = util.format_text(p['desc'][0][0])
  if p.has_key('sub-title'):
! prog.sub_title = p['sub-title'][0][0]
  try:
  prog.start = timestr2secs_utc(p['start'])



---
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=1356alloc_id=3438op=click
___
Freevo-cvslog mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/freevo-cvslog


[Freevo-devel] Bugs in Web Interface (Mike, Rob)

2004-02-21 Thread Gustavo Sverzut Barbieri
Hello,

Trying to fix bugs reported by Mike and you know, dig a problem, find
lot of them.

1) Favorites doesn't support non-ascii names (at least not in unicode).
The error is when communicating to the server.
tv.record_client.findProg() masks the error in the general except
clause. Please could some of you guys check this and  come with a
solution? I don't know twisted internals.

2) As said, Favorites doesn't support non-ascii names, so findProg()
returns a string (error message) as response. Too bad
edit_favorites.rpy does *NOT* check it and keeps processing... so
'prog' is a unicode object instead of a programme and too bad, it has a
.title (but it's a method), so the crash will occur just deeper in the
stack, when creating a Favorite().

Mike, you said:
 The next error i can't figure out:
 exceptions.UnicodeDecodeError: 'ascii' codec can't decode byte 0xe1 
 in position 109: ordinal not in range(128)

 it comes from:
 248 def tableCell(self, data='', opts=''):
 249self.res += td +opts++data+/td\n
 
 with data set as:
 'S\xe1bado Gigante raquo;'

It happens there, but I need to know what is calling tableCell(). The
error there is that your self.res may be in unicode already and you
give it a string with non-ascii chars (data). Python tries to convert
data to unicode using the ascii encoding and fails, raising an
exception. To fix that is just a matter of wrapping data with Unicode()
when calling tableCell().

BTW, where do you live? 'Sábado gigante' seems portuguese (I'm
Brazilian).

Gustavo

__

Yahoo! Mail - O melhor e-mail do Brasil! Abra sua conta agora:
http://br.yahoo.com/info/mail.html


---
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=1356alloc_id=3438op=click
___
Freevo-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/freevo-devel


[Freevo-cvslog] freevo/src/www/htdocs edit_favorite.rpy,1.10,1.11

2004-02-21 Thread gsbarbieri
Update of /cvsroot/freevo/freevo/src/www/htdocs
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv17174/src/www/htdocs

Modified Files:
edit_favorite.rpy 
Log Message:
Fix bug introduced by i18n changes.


Index: edit_favorite.rpy
===
RCS file: /cvsroot/freevo/freevo/src/www/htdocs/edit_favorite.rpy,v
retrieving revision 1.10
retrieving revision 1.11
diff -C2 -d -r1.10 -r1.11
*** edit_favorite.rpy   19 Feb 2004 04:57:59 -  1.10
--- edit_favorite.rpy   22 Feb 2004 07:10:52 -  1.11
***
*** 12,15 
--- 12,18 
  # ---
  # $Log$
+ # Revision 1.11  2004/02/22 07:10:52  gsbarbieri
+ # Fix bug introduced by i18n changes.
+ #
  # Revision 1.10  2004/02/19 04:57:59  gsbarbieri
  # Support Web Interface i18n.
***
*** 184,204 
  fv.tableCell(cell, 'class='+status+' colspan=1')
  
! cell = '\nselect name=dow\n' 
! cell += 
!   option value=ANY+_('ANY DAY')+/option
!   option value=0+_('Mon')+/option
!   option value=1+_('Tue')+/option
!   option value=2+_('Wed')+/option
!   option value=3+_('Thu')+/option
!   option value=4+_('Fri')+/option
!   option value=5+_('Sat')+/option
!   option value=6+_('Sun')+/option
! /select
! 
  fv.tableCell(cell, 'class='+status+' colspan=1')
  
  cell = '\nselect name=mod selected=%s\n' % fav.mod
  cell += 
-   option value=ANY+_('ANY TIME')+/option
option value=012:00 AM/option
option value=3012:30 AM/option
--- 187,206 
  fv.tableCell(cell, 'class='+status+' colspan=1')
  
! cell = '\nselect name=dow\n' \
!'   option value=ANY'+_('ANY DAY')+'/option\n' \
!'   option value=0'+_('Mon')+'/option\n' \
!'   option value=1'+_('Tue')+'/option\n' \
!'   option value=2'+_('Wed')+'/option\n' \
!'   option value=3'+_('Thu')+'/option\n' \
!'   option value=4'+_('Fri')+'/option\n' \
!'   option value=5'+_('Sat')+'/option\n' \
!'   option value=6'+_('Sun')+'/option\n' \
!'/select\n'
! 
  fv.tableCell(cell, 'class='+status+' colspan=1')
  
  cell = '\nselect name=mod selected=%s\n' % fav.mod
+ cell += '  option value=ANY'+_('ANY TIME')+'/option\n'
  cell += 
option value=012:00 AM/option
option value=3012:30 AM/option



---
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=1356alloc_id=3438op=click
___
Freevo-cvslog mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/freevo-cvslog


[Freevo-cvslog] freevo/src/www/htdocs favorites.rpy,1.11,1.12

2004-02-21 Thread gsbarbieri
Update of /cvsroot/freevo/freevo/src/www/htdocs
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv17370/src/www/htdocs

Modified Files:
favorites.rpy 
Log Message:
Add more i18n and fix bugs introduced by last i18n changes.


Index: favorites.rpy
===
RCS file: /cvsroot/freevo/freevo/src/www/htdocs/favorites.rpy,v
retrieving revision 1.11
retrieving revision 1.12
diff -C2 -d -r1.11 -r1.12
*** favorites.rpy   19 Feb 2004 04:57:59 -  1.11
--- favorites.rpy   22 Feb 2004 07:12:17 -  1.12
***
*** 12,15 
--- 12,18 
  # ---
  # $Log$
+ # Revision 1.12  2004/02/22 07:12:17  gsbarbieri
+ # Add more i18n and fix bugs introduced by last i18n changes.
+ #
  # Revision 1.11  2004/02/19 04:57:59  gsbarbieri
  # Support Web Interface i18n.
***
*** 170,178 
  for fav in favs:
  status = 'favorite'
! 
  fv.tableRowOpen('class=chanrow')
  fv.tableCell(fav.name, 'class='+status+' colspan=1')
  fv.tableCell(fav.title, 'class='+status+' colspan=1')
! fv.tableCell(fav.channel, 'class='+status+' colspan=1')
  
  if fav.dow != 'ANY':
--- 173,185 
  for fav in favs:
  status = 'favorite'
! if fav.channel == 'ANY':
! fchan = _('ANY')
! else:
! fchan = fav.channel
! 
  fv.tableRowOpen('class=chanrow')
  fv.tableCell(fav.name, 'class='+status+' colspan=1')
  fv.tableCell(fav.title, 'class='+status+' colspan=1')
! fv.tableCell(fchan, 'class='+status+' colspan=1')
  
  if fav.dow != 'ANY':
***
*** 191,196 
  
  # cell = 'input type=hidden name=action value=%s' % action
! cell = 'a href=edit_favorite.rpy?action=editname=%sEdit/a, ' % 
fav.name.replace('','%26')
! cell += 'a href=favorites.rpy?action=removename=%sRemove/a' % 
fav.name.replace('','%26')
  fv.tableCell(cell, 'class='+status+' colspan=1')
  
--- 198,203 
  
  # cell = 'input type=hidden name=action value=%s' % action
! cell = ('a 
href=edit_favorite.rpy?action=editname=%s'+_('Edit')+'/a, ') % 
fav.name.replace('','%26')
! cell += ('a 
href=favorites.rpy?action=removename=%s'+_('Remove')+'/a') % 
fav.name.replace('','%26')
  fv.tableCell(cell, 'class='+status+' colspan=1')
  
***
*** 199,203 
  if favs.index(fav) != 0:
  tmp_prio = int(fav.priority) - 1
! cell += 'a 
href=favorites.rpy?action=bumpname=%spriority=-1'+_('Higher')+'/a' % fav.name
  
  if favs.index(fav) != 0 and favs.index(fav) != len(favs)-1:
--- 206,210 
  if favs.index(fav) != 0:
  tmp_prio = int(fav.priority) - 1
! cell += ('a 
href=favorites.rpy?action=bumpname=%spriority=-1'+_('Higher')+'/a') % fav.name
  
  if favs.index(fav) != 0 and favs.index(fav) != len(favs)-1:
***
*** 206,210 
  if favs.index(fav) != len(favs)-1:
  tmp_prio = int(fav.priority) + 1
! cell += 'a 
href=favorites.rpy?action=bumpname=%spriority=1'+_('Lower')+'/a' % fav.name
  
  fv.tableCell(cell, 'class='+status+' colspan=1')
--- 213,217 
  if favs.index(fav) != len(favs)-1:
  tmp_prio = int(fav.priority) + 1
! cell += ('a 
href=favorites.rpy?action=bumpname=%spriority=1'+_('Lower')+'/a') % fav.name
  
  fv.tableCell(cell, 'class='+status+' colspan=1')



---
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=1356alloc_id=3438op=click
___
Freevo-cvslog mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/freevo-cvslog


[Freevo-cvslog] freevo/src/www/htdocs genre.rpy,1.6,1.7

2004-02-21 Thread gsbarbieri
Update of /cvsroot/freevo/freevo/src/www/htdocs
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv17554/src/www/htdocs

Modified Files:
genre.rpy 
Log Message:
Fix bugs introduced by i18n changes.


Index: genre.rpy
===
RCS file: /cvsroot/freevo/freevo/src/www/htdocs/genre.rpy,v
retrieving revision 1.6
retrieving revision 1.7
diff -C2 -d -r1.6 -r1.7
*** genre.rpy   19 Feb 2004 04:57:59 -  1.6
--- genre.rpy   22 Feb 2004 07:13:27 -  1.7
***
*** 12,15 
--- 12,18 
  # ---
  # $Log$
+ # Revision 1.7  2004/02/22 07:13:27  gsbarbieri
+ # Fix bugs introduced by i18n changes.
+ #
  # Revision 1.6  2004/02/19 04:57:59  gsbarbieri
  # Support Web Interface i18n.
***
*** 63,74 
  
  def makecategorybox(self, categories, category):
! retval = 'select name=category' + \n
  for cat in categories:
! retval += 'option value=%s ' % cat
  if cat == category:
! retval += 'SELECTED '
! retval += '%s' % cat
! retval += \n
! retval += '/select' + \n
  return retval
  
--- 66,78 
  
  def makecategorybox(self, categories, category):
! retval = u'select name=category\n'
! category = Unicode( category )
  for cat in categories:
! cat = Unicode( cat )
! retval += u'option value=%s ' % cat
  if cat == category:
! retval += u'SELECTED '
! retval += u'%s/option\n' % cat
! retval += u'/select\n'
  return retval
  
***
*** 183,249 
  else:
  desc = prog.desc
! pops += 
! div id=%s class=proginfo
!table width=100%%
!   cellpadding=0
!   cellspacing=0
!   class=popup
!   onmouseover=focusPop('%s');
!   onmouseout=unfocusPop('%s');
!   thead
!  tr
! td
!%s
! /td
!  /tr
!   /thead
!   tbody
!  tr
! td class=progdesc
!%s
! /td
!  /tr
!  tr
!  td class=progtime
! b+_('Start')+:/b %s, 
! b+_('Stop')+:/b %s,
! b+_('Runtime')+:/b %smin
! /td
!  /td
!   /tbody
!   tfoot
!  tr
! td
!table width=100%%
!   class=popupbuttons
!   border=0
!   cellpadding=0
!   cellspacing=4
!   tbody
!  tr
! td 
onclick=document.location='record.rpy?chan=%sstart=%saction=add'
!+_('Record')+
! /td
! td 
onclick=document.location='edit_favorite.rpy?chan=%sstart=%saction=add'
!+_('Add to Favorites')+
! /td
! td onclick=javascript:closePop('%s');
!+_('Close Window')+
! /td
!  /tr
!   /tbody
!/table
! /td
!  /tr
!   /tfoot
!/table
! /div
!  % ( popid, popid, popid, prog.title, desc,
! time.strftime('%H:%M', time.localtime( prog.start ) 
),
! time.strftime('%H:%M', time.localtime( prog.stop ) ),
! int( ( prog.stop - prog.start ) / 60 ),
! prog.channel_id, prog.start,
! prog.channel_id, prog.start, popid )
! 
  fv.tableCell(prog.title, 'class='+status+' 
onclick=showPop(\'%s\', this) width=80%%' % popid )
  fv.tableCell(time.strftime('%H:%M', time.localtime(prog.start)), 
'class=channel')
--- 187,256 
  else:
  desc = prog.desc
! pops += ( udiv id=\%s\ class=\proginfo\\n\
!   u   table width=\100%%\\n\
!   u  cellpadding=\0\\n\
!   u  cellspacing=\0\\n\
!   u  class=\popup\\n\
!   u  onmouseover=\focusPop('%s');\\n\
!   u  onmouseout=\unfocusPop('%s');\\n\
!   u  thead\n\
!   u tr\n\
!   utd\
!   u   %s\n\
!   u/td\n\
!   u 

Re: [Freevo-devel] Re: cvsfreevocachecrash

2004-02-21 Thread Robert Winder

Saturday, February 21, 2004, 8:49:51 PM, Dirk wrote:

 Robert Winder wrote:
 creating audio metadata...
 Traceback (most recent call last):
   File /usr/local/freevocvs/src/helpers/cache.py, line 490, in ?
 create_metadata()
   File /usr/local/freevocvs/src/helpers/cache.py, line 287, in create_metadata
 util.extendedmeta.AudioParser(dir[1], rescan=True)
   File /usr/local/freevocvs/src/util/extendedmeta.py, line 204, in __init__
 d = AudioParser(subdir, force=True, rescan=rescan)
   File /usr/local/freevocvs/src/util/extendedmeta.py, line 216, in __init__
 setattr(self, type, self.strcmp(getattr(self, type), data[type]))
   File /usr/local/freevocvs/src/util/extendedmeta.py, line 243, in strcmp
 if s1.replace(' ', '').lower() == s2.replace(' ', '').lower():
 UnicodeDecodeError: 'ascii' codec can't decode byte 0xff in
 position 0: ordinal not in range(128)

 Fixed. They may be more Unicode errors in the code. Always post them
 here to eleminate them.

 Dischi

Checked out cvs again with the extendedmeta.py update and it still fails with:

creating audio metadata...
Traceback (most recent call last):
  File /usr/local/freevocvs/src/helpers/cache.py, line 490, in ?
create_metadata()
  File /usr/local/freevocvs/src/helpers/cache.py, line 287, in create_metadata
util.extendedmeta.AudioParser(dir[1], rescan=True)
  File /usr/local/freevocvs/src/util/extendedmeta.py, line 207, in __init__
d = AudioParser(subdir, force=True, rescan=rescan)
  File /usr/local/freevocvs/src/util/extendedmeta.py, line 219, in __init__
setattr(self, type, self.strcmp(getattr(self, type), data[type]))
  File /usr/local/freevocvs/src/util/extendedmeta.py, line 249, in strcmp
if s1.replace(' ', '').lower() == s2.replace(' ', '').lower():
UnicodeDecodeError: 'ascii' codec can't decode byte 0xff in position 0: ordinal not in 
range(128)

/Robert






  
 



---
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=1356alloc_id=3438op=click
___
Freevo-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/freevo-devel