I am using "mod_python.publisher" to generate my web page that contains serveral links to local files. I also replace the path with my domain name like this:
curDir = os.path.dirname(__file__) link = 'http://' + hostname + '/' + os.path.basename(curDir) + '/' files = os.listdir(curDir) for i in files: body = body + '<a href='+'"'+ link + i + '">' + i + '</a>' + '<br>' However, browser give me 404 error whenever I click on any of the links. Is there something wrong with how I build my file links ? Thanks, -- This is a UTF-8 formatted mail ----------------------------------------------- James C.-C.Yu
-- http://mail.python.org/mailman/listinfo/python-list