combining mod_python handlers publisher and psp problem

exhuma.twn exhuma at gmail.com
Mon Mar 20 15:39:47 CET 2006


grahamd at dscpl.com.au wrote:
> You could also have done:
>
>    def index(req, name='John'):
>       s = 'Hello, there!'
>       if name:
>          names = ['a', 'b', 'c']
>          s = 'Hello, %s!' % name.capitalize()
>          tmpl = psp.PSP(req, filename='index.psp')
>          req.content_type = 'text/html'
>          tmpl.run(vars = { 'greet': s, 'names': names })
>       return
>
> Try the mod_python mailing list if you want an explaination of why.
> 
> Graham

Thanks, that worked.




More information about the Python-list mailing list