combining mod_python handlers publisher and psp problem

grahamd at grahamd at
Mon Mar 20 11:35:53 CET 2006

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' = { 'greet': s, 'names': names })

Try the mod_python mailing list if you want an explaination of why.


More information about the Python-list mailing list