[mod_python] Cannot load templates using PSP class

jalil jalil at securia.com
Fri Jan 9 14:27:32 EST 2004


Grisha,

req.filename is the the full path of the resource on my filesystem and 
looks fine.
Please let me know what info you need regarding my configuration or what 
config parameters make this fail.

Thanks,

-Jalil

Gregory (Grisha) Trubetskoy wrote:

>It's impossible to answer this without the details of your configuration.
>
>Take a look at your req.filename. PSP tries to figure out the "current
>directory" by looking at req.filename. Under certain configs this won't
>work.
>
>Grisha
>
>On Fri, 9 Jan 2004, jalil wrote:
>
>  
>
>>In my python default handler, I am trying to load an html file in my
>>code using the example below:
>>
>>template = psp.PSP(req, filename='template.html')
>>
>>The html file is located in the same directory as my .py file but this call
>>fails unless I pass the full path of the html file in the call!
>>
>>Any way to change this behaviour?
>>
>>Thanks,
>>
>>-Jalil
>>
>>
>>
>>_______________________________________________
>>Mod_python mailing list
>>Mod_python at modpython.org
>>http://mailman.modpython.org/mailman/listinfo/mod_python
>>
>>    
>>
>
>  
>



More information about the Mod_python mailing list