[views] Revert previous changeset 8f05aaabf355
authorRémi Cardona <remi.cardona@logilab.fr>
Mon, 22 Jun 2015 14:15:16 +0200
changeset 10410 eb681a030699
parent 10384 8f05aaabf355
child 10411 4ee15441f2eb
[views] Revert previous changeset 8f05aaabf355 Breaks cubicweb/web/test/test_views.py as some views don't have a 'vid' kwarg.
web/views/baseviews.py
--- a/web/views/baseviews.py	Thu Mar 19 11:30:37 2015 +0100
+++ b/web/views/baseviews.py	Mon Jun 22 14:15:16 2015 +0200
@@ -401,11 +401,10 @@
         showtitle = kwargs.pop('showtitle', not 'vtitle' in self._cw.form)
         if showtitle:
             self.w(u'<h1>%s</h1>' % self.title)
-        subvid = self._cw.form.pop('subvid', None)
-        super(SameETypeListView, self).call(vid=subvid, **kwargs)
+        super(SameETypeListView, self).call(**kwargs)
 
-    def cell_call(self, row, col=0, vid=None, **kwargs):
-        self.wview(self.item_vid, self.cw_rset, row=row, col=col, vid=vid, **kwargs)
+    def cell_call(self, row, col=0, **kwargs):
+        self.wview(self.item_vid, self.cw_rset, row=row, col=col, **kwargs)
 
 
 class SameETypeListItemView(EntityView):