Hi Alec,
You need:
response.headers['Content-type'] = "application/atom+xml"
return render("genshi-xml", "atom-feed")
James
alecf wrote:
I'm trying to render some Atom feeds with Pylons -
I've got a genshi template that more or less renders the atom feed,
but I need to return it as application/atom+xml
For the life of me I can't figure out how the new global response
object works - setting content_type has no effect.. my controller
looks something like:
response.content_type = "application/atom+xml"
response.content = render("genshi-xml", "atom-feed")
(I had to write my own 'genshi-xml' engine plugin wrapper for Genshi,
because Genshi's default requires the file extension to be .html, but
that's a whole other story...)