web/views/basecomponents.py
changeset 143 c4f11f70b75e
parent 142 0425ee84cfa6
child 237 3df2e0ae2eba
--- a/web/views/basecomponents.py	Tue Nov 25 17:41:16 2008 +0100
+++ b/web/views/basecomponents.py	Tue Nov 25 17:44:35 2008 +0100
@@ -234,3 +234,19 @@
         self.w(u' | '.join(html))
         self.w(u'</div>')
         
+
+
+class RSSFeedURL(VComponent):
+    id = 'rss_feed_url'
+    __selectors__ = (nfentity_selector,)
+    
+    def feed_url(self):
+        return self.build_url(rql=self.limited_rql(), vid='rss')
+
+class RSSEntityFeedURL(VComponent):
+    id = 'rss_feed_url'
+    __selectors__ = (nfentity_selector, onelinerset_selector)
+    
+    def feed_url(self):
+        return self.entity(0, 0).rss_feed_url()
+