Wouter van Marle
wouter at squirrel-systems.com
Wed May 18 22:58:08 EDT 2005
Hi all, Then hereby I'll make it a feature request: I'd like to have a method to catch the html code as produced by the run() method of the psp.PSP object for use in e.g. an e-mail body, instead of having the run() method automatically pass it to the browser. I mean: normally one does something like: page = psp.PSP(req, "template.psp") page.run({"spam": 1, "eggs": 5}) and the page is converted to html, and displayed in the browser. I'd like to use this templating for creating an e-mail, e.g.: page = psp.PSP(req, "template.psp") body = page.create({"spam": 1, "eggs": 5}) Which basically would do exactly the same as the run() module, except for having the html code as output. Regards, Wouter van Marle -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mm_cfg_has_not_been_edited_to_set_host_domains/pipermail/mod_python/attachments/20050519/d2d0db01/attachment.html
|