handlers.py
changeset 80 a0662cff1d9d
parent 79 43ac75054d5c
child 82 afd3120ec71e
--- a/handlers.py	Tue Feb 10 02:57:16 2009 +0200
+++ b/handlers.py	Tue Feb 10 03:22:43 2009 +0200
@@ -103,6 +103,12 @@
         png_data = formatter.format_png(lines)
 
         return http.Response(png_data, 'image/png', charset=None)
+    
+    elif type == 'rss' :
+        # RSS feed
+        rss_data = formatter.format_rss(lines)
+
+        return http.Response(rss_data, 'application/rss+xml')
 
     else :
         raise http.ResponseError("Unrecognized type: %r" % (type, ))