|
Vincent Wong
vincentwong at ionetbiz.com
Sat Jul 7 12:34:35 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
|