[open-ils-commits] r205 - servres/trunk/conifer/syrup (gfawcett)
svn at svn.open-ils.org
svn at svn.open-ils.org
Thu Mar 19 20:32:09 EDT 2009
Author: gfawcett
Date: 2009-03-19 20:32:08 -0400 (Thu, 19 Mar 2009)
New Revision: 205
Modified:
servres/trunk/conifer/syrup/views.py
Log:
corrected mime-type on Atom feeds.
Modified: servres/trunk/conifer/syrup/views.py
===================================================================
--- servres/trunk/conifer/syrup/views.py 2009-03-20 00:09:10 UTC (rev 204)
+++ servres/trunk/conifer/syrup/views.py 2009-03-20 00:32:08 UTC (rev 205)
@@ -1044,7 +1044,7 @@
else:
return item.title
lastmod = items and max(i.last_modified for i in items) or datetime.now()
- return g.render('feeds/course_atom.xml',
+ resp = g.render('feeds/course_atom.xml',
course=course,
feed_type=feed_type,
lastmod=lastmod,
@@ -1052,4 +1052,6 @@
items=items,
root='http://%s' % request.get_host(),
_serialization='xml')
+ resp['Content-Type'] = 'application/atom+xml'
+ return resp
More information about the open-ils-commits
mailing list