# HG changeset patch # User Pierre-Yves David # Date 1268405611 -3600 # Node ID 5dec0d400d0833c40e69e6ed3a237c73864c08eb # Parent 15ae9a33a7f2fd30c974ff7359d99d9737d4568c Add a rssitem_id attribut to RSSView to easly choose the view used for items. diff -r 15ae9a33a7f2 -r 5dec0d400d08 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):