[mod_python] how to take the psp.PSP.run in a variable ?

Graham Dumpleton graham.dumpleton at gmail.com
Wed Oct 10 18:19:53 EDT 2007


Use some variation of techniques described in:

  http://www.modpython.org/pipermail/mod_python/2005-June/018231.html

If you search the mailing list archive in www.modpython.org you will
find other examples and discussion of issues associated with them.

Graham

On 11/10/2007, Stefan Horomnea <stefan at softexperience.ro> wrote:
> Hello,
>
> I have this code:
>
>     tmpl = psp.PSP(req, filename='tp/myresult.tpl.html')
>     tmpl.run(vars = kwargs)
>
> My question is, how can I store the template contents in a variable. So
> the run method instead of printing making it return ?
>
> Cause I really need this for taking the returning string, and using it
> as a piece in a greater template. Or doing some other stuff on that string.
>
> Thanks.
> Stefan
>
> _______________________________________________
> 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