mod_python y las templates

Miguel Angel Iglesias caente en gmail.com
Mar Oct 10 18:28:59 CEST 2006


Ño!, eso mismo era, gracias!!

2006/10/10, peter <pablomarmol en gmail.com>:
>
> 2006/10/10, Miguel Angel Iglesias <caente en gmail.com>:
> > def hello(req, name=''):
> >     s = 'Hello, there!'
> >     if name:
> >         s = 'Hello, %s!' % name.capitalize()
> >     tmpl = psp.PSP(req, filename='hola.tmpl')
> >     tmpl.run(vars = { 'greet': s })
> >     return
>
>
> Prueba añadiendo:
>     req.content_type = "text/html"
>
>
>
> .
> _______________________________________________
> Python-es mailing list
> Python-es en aditel.org
> http://listas.aditel.org/listinfo/python-es
>




Más información sobre la lista de distribución Python-es