[breadcrumb] BreadCrumbAnyRSetVComponent should implements call() stable
authorSylvain Thénault <sylvain.thenault@logilab.fr>
Wed, 26 Aug 2009 11:16:10 +0200
branchstable
changeset 3015 0588e39f6743
parent 3014 62ce5a139b52
child 3016 5787d1cc8106
child 3019 bdb120240d75
child 3020 36c5f21c8de7
[breadcrumb] BreadCrumbAnyRSetVComponent should implements call()
web/views/ibreadcrumbs.py
--- a/web/views/ibreadcrumbs.py	Wed Aug 26 11:15:39 2009 +0200
+++ b/web/views/ibreadcrumbs.py	Wed Aug 26 11:16:10 2009 +0200
@@ -91,8 +91,12 @@
 class BreadCrumbAnyRSetVComponent(BreadCrumbEntityVComponent):
     __select__ = any_rset()
 
-    def render_breadcrumbs(self, contextentity, path):
+    def call(self, view=None, first_separator=True):
+        self.w(u'<span id="breadcrumbs" class="pathbar">')
+        if first_separator:
+            self.w(self.separator)
         self.w(self.req._('search'))
+        self.w(u'</span>')
 
 
 class BreadCrumbView(EntityView):