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 })
returnTry the mod_python mailing list if you want an explaination of why. Graham -- http://mail.python.org/mailman/listinfo/python-list
