Did i mention I hate Unicode? well I do. But i just commited a fix. I
tested with the Char you had a problem with and now it seems to work for
me. But due to vagaries in Unicode i dare not say more than that. Try
again please with a cvs dated may 15 or later,
--
Mike Ruelle [EMAIL PROTECTED]
On Mon, 2004-03-22 at 14:04, Robert Winder wrote:
hi,
Mike thanks for fixing the multiple dir prob in library.rpy but there
is still an unicode prob one level deeper.
Entering a mp3 dir with some é chars results in
web.Server Traceback (most recent call last):
exceptions.UnicodeDecodeError: 'ascii' codec can't decode byte 0x94 in position 4:
ordinal not in range(128)
/usr/lib/python2.3/site-packages/twisted/web/server.py, line 159 in process
157try:
158 resrc = self.site.getResourceFor(self)
159 self.render(resrc)
160except:
Selfsite twisted.web.server.Site instance @ 0x40c8638c
twisted.web.server.Site instance at 0x40c8638c
Localsresrc __builtin__.LibraryResource instance @ 0x40fef88c
__builtin__.LibraryResource instance at 0x40fef88c
self twisted.web.server.Request instance @ 0x4106068c
GET /library.rpy?media=musicdir=/media/audio/Jazz%20Tunes HTTP/1.1
/usr/lib/python2.3/site-packages/twisted/web/server.py, line 166 in render
164 def render(self, resrc):
165try:
166 body = resrc.render(self)
167except UnsupportedMethod, e:
Localsresrc __builtin__.LibraryResource instance @ 0x40fef88c
__builtin__.LibraryResource instance at 0x40fef88c
self twisted.web.server.Request instance @ 0x4106068c
GET /library.rpy?media=musicdir=/media/audio/Jazz%20Tunes HTTP/1.1
GlobalsUnsupportedMethod class twisted.web.server.UnsupportedMethod at 0x40c754ac
/usr/local/freevocvs/src/www/web_types.py, line 137 in render
135 return 'h1401 Authentication required/h1'
136else:
137 return self._render(request)
138
Localsself __builtin__.LibraryResource instance @ 0x40fef88c
__builtin__.LibraryResource instance at 0x40fef88c
request twisted.web.server.Request instance @ 0x4106068c
GET /library.rpy?media=musicdir=/media/audio/Jazz%20Tunes HTTP/1.1
/usr/local/freevocvs/src/www/htdocs/library.rpy, line 410 in _render
408 # get me the directories to output
409 directorylist = util.getdirnames(action_dir)
410 for mydir in directorylist:
411mydir = Unicode(mydir)
Localsdirectories List instance @ 0x40fef74c
('JAZZ', '/media/audio/Jazz Tunes')
('POP', '/media/audio/Pop Tunes')
('INTERNET-RADIO', '/media/audio/Inet radio')
action_dir u'/media/audio/Jazz Tunes'
Globalsutil module 'util' from '/usr/local/freevocvs/src/util/__init__.pyo'
/usr/local/freevocvs/src/util/fileops.py, line 90 in getdirnames
88
89 try:
90dirnames = [ dirname + dname for dname in os.listdir(dirname) if \
91 os.path.isdir(dirname + dname) and \
Localsdname 'Esbj\x94rn Svensson Trio - Plays Monk'
dirname u'/media/audio/Jazz Tunes/'
Globalsos module 'os' from '/usr/lib/python2.3/os.pyo'
/Robert
---
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470alloc_id=3638op=click
___
Freevo-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/freevo-users
---
This SF.Net email is sponsored by: SourceForge.net Broadband
Sign-up now for SourceForge Broadband and get the fastest
6.0/768 connection for only $19.95/mo for the first 3 months!
http://ads.osdn.com/?ad_id%62alloc_ida84op=click
___
Freevo-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/freevo-users