[mod_python] PSP(req, string=None)

dharana dharana at dharana.net
Mon Jun 20 05:47:20 EDT 2005

PSP(req, string=None) won't print a blank page, it will try to load a file. Is 
this intended behaviour?

from the doc:

req is a request object; filename and string are optional keyword arguments 
which indicate the source of the PSP code. Only one of these can be specified. 
If neither is specified, req.filename is used as filename.

I'm really specifying the string param.

I came across this because I dynamically pass psp code to PSP and sometimes it's 
a blank string instead of useful contents.


More information about the Mod_python mailing list