Another variant for creating a non-200 response.

# create a new Response with content-type header 'application/xml'
response = Response(render("template.myt"), code=204)
response.headers['Content-Type'] = 'application/xml'
return response


Michael

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "pylons-discuss" group.
To post to this group, send email to pylons-discuss@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/pylons-discuss
-~----------~----~----~----~------~----~------~--~---

Reply via email to