web/views/ibreadcrumbs.py
branchstable
changeset 7101 de388d0b727e
parent 6920 c41336a682ed
child 7103 9acffa1ecb2f
--- a/web/views/ibreadcrumbs.py	Wed Mar 23 18:20:34 2011 +0100
+++ b/web/views/ibreadcrumbs.py	Thu Mar 24 13:20:33 2011 +0100
@@ -1,4 +1,4 @@
-# copyright 2003-2010 LOGILAB S.A. (Paris, FRANCE), all rights reserved.
+# copyright 2003-2011 LOGILAB S.A. (Paris, FRANCE), all rights reserved.
 # contact http://www.logilab.fr/ -- mailto:contact@logilab.fr
 #
 # This file is part of CubicWeb.
@@ -117,7 +117,9 @@
     link_template = u'<a href="%s">%s</a>'
     first_separator = True
 
-    def render(self, w):
+    # XXX support kwargs for compat with other components which gets the view as
+    # argument
+    def render(self, w, **kwargs):
         entity = self.cw_rset.get_entity(0, 0)
         adapter = ibreadcrumb_adapter(entity)
         view = self.cw_extra_kwargs.get('view')
@@ -178,7 +180,9 @@
 class BreadCrumbAnyRSetVComponent(BreadCrumbEntityVComponent):
     __select__ = basecomponents.HeaderComponent.__select__ & any_rset()
 
-    def render(self, w):
+    # XXX support kwargs for compat with other components which gets the view as
+    # argument
+    def render(self, w, **kwargs):
         w(u'<span id="breadcrumbs" class="pathbar">')
         if self.first_separator:
             w(self.separator)