david / django-modelviews

Backup of an old repository with useful ideas. Initial goal: integrating REST to django admin (class-based views).

Clone this repository (size: 85.8 KB): HTTPS / SSH
$ hg clone http://code.welldev.org/django-modelviews
commit 50: 34b8eab184fe
parent 49: 98cde33c57b2
branch: default
Added mimetypes for RSS and Atom responders.
Will Larson
2 years ago

Changed (Δ310 bytes):

raw changeset »

docs/modelviews.txt (7 lines added, 0 lines removed)

generic/responders.py (2 lines added, 0 lines removed)

Up to file-list docs/modelviews.txt:

@@ -182,9 +182,16 @@ It is associated with the ``text/yaml``
182
182
AtomResponder
183
183
-------------
184
184
185
The ``AtomResponder`` returns the contents as an Atom feed.
186
187
It is associated with ``application/atom+xml`` mimetype.
188
185
189
RssResponder
186
190
------------
187
191
192
The ``RssResponder`` returns the contents in an RSS feed.
193
194
It is associated with ``application/rss+xml`` mimetype.
188
195
189
196
Authentication
190
197
==============

Up to file-list generic/responders.py:

@@ -176,10 +176,12 @@ class FeedResponder(BaseResponder):
176
176
177
177
178
178
class AtomResponder(FeedResponder):
179
    mimetype = "application/atom+xml"
179
180
    feedgenerator_class = Atom1Feed
180
181
181
182
182
183
class RssResponder(FeedResponder):
184
    mimetype = " application/rss+xml"
183
185
    feedgenerator_class = Rss201rev2Feed
184
186
185
187