Add a rssitem_id attribut to RSSView to easly choose the view used for items. stable
authorPierre-Yves David <pierre-yves.david@logilab.fr>
Fri, 12 Mar 2010 15:53:31 +0100
branchstable
changeset 4898 5dec0d400d08
parent 4893 15ae9a33a7f2
child 4899 c666d265fb95
child 4900 29626bb6071b
Add a rssitem_id attribut to RSSView to easly choose the view used for items.
web/views/xmlrss.py
--- a/web/views/xmlrss.py	Fri Mar 12 14:55:41 2010 +0100
+++ b/web/views/xmlrss.py	Fri Mar 12 15:53:31 2010 +0100
@@ -148,6 +148,7 @@
     content_type = 'text/xml'
     http_cache_manager = httpcache.MaxAgeHTTPCacheManager
     cache_max_age = 60*60*2 # stay in http cache for 2 hours by default
+    item_vid = 'rssitem'
 
     def _open(self):
         req = self._cw
@@ -174,7 +175,7 @@
         self._close()
 
     def cell_call(self, row, col):
-        self.wview('rssitem', self.cw_rset, row=row, col=col)
+        self.wview(self.item_vid, self.cw_rset, row=row, col=col)
 
 
 class RSSItemView(EntityView):