Sylvain Hellegouarch schrieb: > The problem is more likely to be the media-type. > > FeedController rightly sets the Content-Type of the response accordingly > of each feed type (atom and rss) [1] but browsers like IE6 and Fx1.5 > don't know what to do with them.
Yes, FeedController sets the media type for Atom 0.3 + 1.0 feeds to "application/atom+xml", which is the correct thing to do, according to [1] and to "application/rss+xml" for RSS feeds [2] Older browsers will open a "Save as..." dialog for those mime-types, because an media-type odf "application" generally stands for a file, that needs application support to open it and if the browsers don't know about the mime-type, they won't display it, not even the raw XML. > You could try to use "application/xml" instead but I'm not even sure > that'd work better. http://www.microsite.reuters.com/rss/healthNews/ Returns a "application/xhtml+xml" mime-type, so you could try returning that. Just copy the feedcontroller.py module and change the lines linked below accordingly. If you want to get fancy, you can serve a different mime-type according to the client (aka browser sniffing). But IMHO that's not worth the effort. If people want decent to use RSS/Atom feeds, they should use an application that supports it (and displaying the raw XML does not count as "support"). The whole thing could be solved most simply by instructing users of older browsers to install a feed reader app and configure the browser to open RSS/Atom feeds with it (most feed readers will probably configure the browser automatically when installed). > [1] http://trac.turbogears.org/browser/trunk/turbogears/feed/feed.py Specifically: http://trac.turbogears.org/browser/trunk/turbogears/feed/feed.py#L55 http://trac.turbogears.org/browser/trunk/turbogears/feed/feed.py#L64 http://trac.turbogears.org/browser/trunk/turbogears/feed/feed.py#L72 Chris [1] http://atompub.org/rfc4287.html#atom.documents [2] http://www.rssboard.org/rss-mime-type-application.txt --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "TurboGears" 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/turbogears?hl=en -~----------~----~----~----~------~----~------~--~---

