On Aug 1, 2007, at 12:56 AM, Jose Galvez wrote:
>
> '''
> Note this is a pylons 0.9.6 action, for pre 0.9.6 return
> Response('\n'.join(html))
> '''
> esc = h.util.html_escape
> html = ['<table><tr>']
> for k,v in request.environ.items():
> html.append('<td>'+esc(k)+'</td><td>'+esc(v)+'</td></tr>')
> html.append('</tr></table>')
> return '\n'.join(html)
There's actually been support for returning strings as the response
content since 0.9.5 -- just FYI, incase 0.9.5 folks want to start
migrating to the new style earlier than later =]
--
Philip Jenvey
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"pylons-discuss" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/pylons-discuss?hl=en
-~----------~----~----~----~------~----~------~--~---