add kwargs to some base views stable
authorSylvain Thénault <sylvain.thenault@logilab.fr>
Thu, 15 Oct 2009 11:56:56 +0200
branchstable
changeset 3682 9b62c5887639
parent 3681 cdbe4aac1198
child 3683 2e4794c97cf4
add kwargs to some base views
web/views/baseviews.py
--- a/web/views/baseviews.py	Thu Oct 15 11:55:07 2009 +0200
+++ b/web/views/baseviews.py	Thu Oct 15 11:56:56 2009 +0200
@@ -115,7 +115,7 @@
     id = 'secondary'
     title = _('secondary')
 
-    def cell_call(self, row, col):
+    def cell_call(self, row, col, **kwargs):
         """the secondary view for an entity
         secondary = icon + view(oneline)
         """
@@ -128,7 +128,7 @@
     id = 'oneline'
     title = _('oneline')
 
-    def cell_call(self, row, col):
+    def cell_call(self, row, col, **kwargs):
         """the one line view for an entity: linked text view
         """
         entity = self.entity(row, col)
@@ -222,7 +222,7 @@
 class OutOfContextView(EntityView):
     id = 'outofcontext'
 
-    def cell_call(self, row, col):
+    def cell_call(self, row, col, **kwargs):
         entity = self.entity(row, col)
         desc = cut(entity.dc_description(), 50)
         self.w(u'<a href="%s" title="%s">' % (