[mod_python] psp prints

Graham Dumpleton grahamd at dscpl.com.au
Wed Mar 8 05:28:56 EST 2006


On 08/03/2006, at 9:19 PM, Peter Sheldrick wrote:

> With psp you can gereate html by doing <%= "html" %> or def fun: 
> return "html" <%= fun() %> is there a way for fun to just "print" the 
> html? For example when it is called by a few functions first i don't 
> want to have to pass the return string of fun() to all above 
> functions.

You can still call req.write().

<%=
req.write("html")
%>

Is that what you want?

Graham



More information about the Mod_python mailing list