Changeset 1201
- Timestamp:
- 11/12/05 12:32:12 (3 years ago)
- Files:
-
- django/trunk/django/contrib/syndication/views.py (modified) (1 diff)
- django/trunk/django/utils/feedgenerator.py (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
django/trunk/django/contrib/syndication/views.py
r1194 r1201 22 22 raise Http404, "Invalid feed parameters. Slug %r is valid, but other parameters, or lack thereof, are not." % slug 23 23 24 response = HttpResponse(mimetype= 'application/xml')24 response = HttpResponse(mimetype=feedgen.mime_type) 25 25 feedgen.write(response, 'utf-8') 26 26 return response django/trunk/django/utils/feedgenerator.py
r1194 r1201 112 112 113 113 class RssFeed(SyndicationFeed): 114 mime_type = 'application/rss+xml' 114 115 def write(self, outfile, encoding): 115 116 handler = SimplerXMLGenerator(outfile, encoding) … … 177 178 class Atom1Feed(SyndicationFeed): 178 179 # Spec: http://atompub.org/2005/07/11/draft-ietf-atompub-format-10.html 180 mime_type = 'application/atom+xml' 179 181 ns = u"http://www.w3.org/2005/Atom" 180 182 def write(self, outfile, encoding):
