walktree browser filenames problem

dimitri pater dimitri.pater at gmail.com
Fri Feb 4 07:21:45 EST 2005


thanks!
now it works:
ret.append('   <tr><td class="file"><a
href=http://e-bench.serpia.com/upload/%s>%s</a></td></tr>\n' %
(urllib.quote(escape(name)),escape(name)))

bye,
Dimitri


On Fri, 4 Feb 2005 11:45:17 -0000, Richard Brodie <R.Brodie at rl.ac.uk> wrote:
> 
> "dimitri pater" <dimitri.pater at gmail.com> wrote in message
> news:mailman.1877.1107516622.22381.python-list at python.org...
> 
> > The problem is that the filenames are cut off in the status bar of the
> > browser because of the white space (eg 'hello.pdf' works, but 'hello
> > there.pdf' is displayed as hello).
> 
> urllib.quote() should do the trick. You need to follow the rules for
> encoding URIs as well as the HTML ones.
> 
> --
> http://mail.python.org/mailman/listinfo/python-list
> 


-- 
Please visit dimitri's website: www.serpia.com



More information about the Python-list mailing list