[mod_python] Using a psp parser from outside mod_python

dharana dharana at dharana.net
Thu Jun 23 13:54:08 EDT 2005


Thank you for the suggestion Mamading but I'm already using PSP on a lot of 
parts of my application and I would rather stick to only one php-like parsing 
module.

Mamading Ceesay wrote:
> On 6/23/05, dharana <dharana at dharana.net> wrote:
> 
>>If I try to:
>>
>>        from mod_python.psp import PSP
>>
>>from a cmdline python script I get "ImportError: No module named _apache". I'm
>>dynamically generating psp templates (mixes of xhtml and <% %> tags) that need
>>to be parsed into full xhtml from a non-apache env. Is there any possibility of
>>using PSP this way?
>>
> 
> 
> Do you really need PSP, or can you not use something like PyHP
> http://www.freenet.org.nz/python/pyweb/docs/pyhp.html ?
> 
> Personally, I've used Cheetah to generate templates from the command line.
> 

-- 
dharana



More information about the Mod_python mailing list