we should not use inheritance there but proper view redirection, so if one adapt listitem view, he gets the same thing by default with the adapted list
authorSylvain Thénault <sylvain.thenault@logilab.fr>
Fri, 05 Feb 2010 15:53:25 +0100
changeset 4482 1f4f33535d9a
parent 4481 56440a1f816a
child 4483 918fd9931cb7
we should not use inheritance there but proper view redirection, so if one adapt listitem view, he gets the same thing by default with the adapted list
web/views/baseviews.py
--- a/web/views/baseviews.py	Fri Feb 05 15:44:34 2010 +0100
+++ b/web/views/baseviews.py	Fri Feb 05 15:53:25 2010 +0100
@@ -318,9 +318,11 @@
         self.wview(self.item_vid, self.cw_rset, row=row, col=col, vid=vid, **kwargs)
 
 
-class AdaptedListItemView(ListItemView):
+class AdaptedListItemView(EntityView):
     __regid__ = 'adaptedlistitem'
 
+    def cell_call(self, row, col, **kwargs):
+        self.wview('listitem', self.cw_rset, row=row, col=col, **kwargs)
 
 class CSVView(SimpleListView):
     __regid__ = 'csv'