Bugs item #1594117, was opened at 2006-11-10 13:07
Message generated for change (Comment added) made by sijben
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=446895&aid=1594117&group_id=46652

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: record server
Group: 1.6.0
>Status: Open
Resolution: Fixed
Priority: 5
Private: No
Submitted By: Paul Sijben (sijben)
Assigned to: Nobody/Anonymous (nobody)
Summary: record types & accented strings

Initial Comment:
I seem to be unable to record this show through the
web-interface. See 
the debug output below.

Do I conclude correctly from this that String(prog) is
barfing over the 
accented e in the title which it is trying to print
because debugging is on?

-------

2006/11/10 09:51 CET [HTTPChannel,373,127.0.0.1]
findProg: 5, 1163145600
2006/11/10 09:51 CET [HTTPChannel,373,127.0.0.1]
CHANNEL MATCH: 5
2006/11/10 09:51 CET [HTTPChannel,373,127.0.0.1]
PROGRAM MATCH: Donna op één
2006/11/10 09:51 CET [HTTPChannel,373,127.0.0.1]
127.0.0.1 - - 
[10/Nov/2006:08:51:31 +0000] "POST / HTTP/1.0" 200 1395
"-" 
"xmlrpclib.py/1.0.1 (by www.pythonware.com)"
2006/11/10 09:51 CET [HTTPChannel,374,127.0.0.1]
scheduleRecording: 
prog.channel_id="5" chan.id="5" chan.tunerid="12"
2006/11/10 09:51 CET [HTTPChannel,374,127.0.0.1] GET:
reading cached 
file (/var/cache/freevo/record_schedule.xml)
2006/11/10 09:51 CET [HTTPChannel,374,127.0.0.1] Return
cached data
2006/11/10 09:51 CET [HTTPChannel,374,127.0.0.1]
addProgram: key is 
"5:1163145600"
2006/11/10 09:51 CET [HTTPChannel,374,127.0.0.1]
Traceback (most recent 
call last):
           File
"/usr/lib/python2.4/site-packages/twisted/web/http.py", 
line 601, in requestReceived
             self.process()
           File 
"/usr/lib/python2.4/site-packages/twisted/web/server.py",
line 160, in 
process
             self.render(resrc)
           File 
"/usr/lib/python2.4/site-packages/twisted/web/server.py",
line 167, in 
render
             body = resrc.render(self)
           File 
"/usr/lib/python2.4/site-packages/twisted/web/xmlrpc.py",
line 117, in 
render
             defer.maybeDeferred(function,
*args).addErrback(
         --- <exception caught here> ---
           File 
"/usr/lib/python2.4/site-packages/twisted/internet/defer.py",
line 107, 
in maybeDeferred
             result = f(*args, **kw)
           File 
"/usr/lib/python2.4/site-packages/freevo/helpers/recordserver.py",
line 
775, in xmlrpc_scheduleRecording
             (status, response) =
self.scheduleRecording(prog)
           File 
"/usr/lib/python2.4/site-packages/freevo/helpers/recordserver.py",
line 
264, in scheduleRecording
             scheduledRecordings.addProgram(prog,
tv_util.getKey(prog))
           File 
"/usr/lib/python2.4/site-packages/freevo/tv/record_types.py",
line 58, 
in addProgram
             print 'addProgram: actually adding "%s"' %
String(prog)
           File 
"/usr/lib/python2.4/site-packages/twisted/python/log.py",
line 331, in write
             d = (self.buf + data).split('\n')
         exceptions.UnicodeDecodeError: 'ascii' codec
can't decode byte 
0xc3 in position 71: ordinal not in range(128)

----------------------------------------------------------------------

>Comment By: Paul Sijben (sijben)
Date: 2006-11-10 14:47

Message:
Logged In: YES 
user_id=563958

yep that solves it. 

The show gets scheduled now. However the program name now
looks bad in the web interface "Donna op één" instead of
the accented es. I am very curious what the filename will
look like. I'll keep the program in the schedule and will
know on monday.

----------------------------------------------------------------------

Comment By: Duncan Webb (duncanwebb)
Date: 2006-11-10 14:38

Message:
Logged In: YES 
user_id=104395

Thanks for the report.

The problem is that prog is an unicode string and
String(prog) converts it to a normal string. Simply removing
the String should fix this problem.

The fix has been applied to rel-1-6 at r8564

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=446895&aid=1594117&group_id=46652

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Freevo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/freevo-devel

Reply via email to