Author: duncan
Date: Thu Jan 18 19:12:52 2007
New Revision: 8994
Modified:
branches/rel-1/freevo/src/www/htdocs/fileinfo.rpy
branches/rel-1/freevo/src/www/htdocs/library.rpy
Log:
Some unicode fixes, new filename that are being passed around and not being
quoted
Modified: branches/rel-1/freevo/src/www/htdocs/fileinfo.rpy
==============================================================================
--- branches/rel-1/freevo/src/www/htdocs/fileinfo.rpy (original)
+++ branches/rel-1/freevo/src/www/htdocs/fileinfo.rpy Thu Jan 18 19:12:52 2007
@@ -166,7 +166,7 @@
return fxd_info
def convert_dir(self, dir_str):
- print 'convert_dir(self, dir_str=%s)' % (dir_str)
+ print 'convert_dir(self, dir_str=%r)' % (dir_str)
for i in range(len(self.allowed_dirs)):
val = self.allowed_dirs[i][1]
if dir_str.startswith(val):
Modified: branches/rel-1/freevo/src/www/htdocs/library.rpy
==============================================================================
--- branches/rel-1/freevo/src/www/htdocs/library.rpy (original)
+++ branches/rel-1/freevo/src/www/htdocs/library.rpy Thu Jan 18 19:12:52 2007
@@ -532,12 +532,14 @@
if suppressaction:
fv.tableCell(' ', 'class="'+status+'"
colspan="1"')
else:
- file_esc = urllib.quote(file)
- dllink = ('<a
href="'+action_script+'%s">'+_('Download')+'</a>') % os.path.join(basedir,file)
+ file_qu = urllib.quote(file)
+ basedir_qu = urllib.quote(basedir)
+ file_path_qu = urllib.quote(os.path.join(basedir,
file))
+ dllink = ('<a
href="'+action_script+'%s">'+_('Download')+'</a>') % file_path_qu
delete = ('<a
href="javascript:deleteFile(\'%s\',\'%s\',\'%s\')">'+_("Delete")+'</a>') %\
- (basedir, file_esc, action_mediatype)
+ (basedir_qu, file_qu, action_mediatype)
rename = ('<a
href="javascript:renameFile(\'%s\',\'%s\',\'%s\')">'+_("Rename")+'</a>') %\
- (basedir, file_esc, action_mediatype)
+ (basedir_qu, file_qu, action_mediatype)
if i == 2:
fv.tableRowClose()
i = 0
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Freevo-cvslog mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/freevo-cvslog