[mod_python] link to image files broken

Vincent Wong vincentwong at ionetbiz.com
Sat Jul 7 13:10:30 EST 2001


Thanks.  I have make it work.  This is what I did.

--- test.py ---

import os, sys
from mod_python import apache

def saveform(req):
  input = open('/home/demo/html/thanks.html', 'r')
  req.write(input.read())
  return apache.OK


--- thanks.html ---

add the line:

<base href="http://demo.ionetbiz2.com/">


A question here:  the open statement above does not work with relative path,
why?



Regards,
Vincent



-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.modpython.org/pipermail/mod_python/attachments/20010707/76bd17c3/attachment-0003.htm


More information about the Mod_python mailing list