Jay donnell
jaydonnell at gmail.com
Thu Sep 9 21:49:50 EDT 2004
It works perfectly on my freebsd system, but not on suse. template.run doesn't output anything. The template.html file is an exact copy from the documentation --------------------------------------------------------------- from mod_python import apache, psp def handler(req): req.content_type = "text/html" req.write("hi<br>") req.write(req.filename) template = psp.PSP(req, filename='template.html') template.run({'what':'world'}) req.write('<br>after') return apache.OK ------------------------------------------------------------------- Here is the output from a view source in the browser hi<br>/home/bloc/public_html/controller/index.py<br>after -------------------------------------------------------------------
|