Commit 271a6c6e authored by Jean-Paul Smets's avatar Jean-Paul Smets

Added base support

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@13678 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 956f0167
......@@ -54,8 +54,10 @@ class DirectoryFileHandler(FileHandler):
try:
file_list = dircache.listdir(localfile)
s = StringIO()
s.write('<html><head><base href="%s"/></head><body>' % 'file:' + file)
for f in file_list:
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(
'Content-type: %s\nContent-length: %d\nLast-modified: %s\n' %
......
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