Commit 7b019013 authored by Jean-Paul Smets's avatar Jean-Paul Smets

Add title and remove bogus slash.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@13771 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 7218fd48
......@@ -55,8 +55,9 @@ class DirectoryFileHandler(FileHandler):
file_list = dircache.listdir(localfile)
s = StringIO()
s.write('<html><head><base href="%s"/></head><body>' % ('file:' + file))
s.write('<p>Directory Content:</p>')
for f in file_list:
s.write('<p><a href="%s/">%s</a></p>\n' % (urllib.quote(f), f))
s.write('<p><a href="%s">%s</a></p>\n' % (urllib.quote(f), f))
s.write('</body></html>')
s.seek(0)
headers = mimetools.Message(StringIO(
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment