Re: Setting the content type in Pylons 0.9.6

2007-09-26 Thread James Gardner
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

Re: Setting the content type in Pylons 0.9.6

2007-09-26 Thread alecf
I think the only disappointing thing with that is the charset normally gets stuck in there too, and I want to set that in another location... I played around with it and I also was able to set config['pylons.response_options']['content_type'] for a similar effect. Is this going a little too