Commits

Anonymous committed 399b19e

Added blog tag feed

Comments (0)

Files changed (1)

gnocchi_blog/feeds.py

 
     def item_categories(self, item):
         return item.tags
+
+class BlogTagFeed(LatestBlogFeed):
+    def get_object(self, request, tags):
+        tags = [ tag.strip() for tag in tags.split('/') ]
+        return tags
+
+    def description(self, obj):
+        return "Posts with tags %s" % (', '.join(obj)