web/views/ibreadcrumbs.py
changeset 3524 a3431f4e2f40
parent 3460 e4843535db25
parent 3523 16880e7ee3fa
child 3890 d7a270f50f54
--- a/web/views/ibreadcrumbs.py	Mon Sep 28 16:39:10 2009 +0200
+++ b/web/views/ibreadcrumbs.py	Tue Sep 29 15:58:44 2009 +0200
@@ -21,7 +21,7 @@
 
 class BreadCrumbEntityVComponent(Component):
     __regid__ = 'breadcrumbs'
-    __select__ = one_line_rset() & implements(IBreadCrumbs)
+    __select__ = one_line_rset() & implements(IBreadCrumbs, accept_none=False)
 
     cw_property_defs = {
         _('visible'):  dict(type='Boolean', default=True,
@@ -70,7 +70,8 @@
 
 
 class BreadCrumbETypeVComponent(BreadCrumbEntityVComponent):
-    __select__ = two_lines_rset() & one_etype_rset() & implements(IBreadCrumbs)
+    __select__ = two_lines_rset() & one_etype_rset() & \
+                 implements(IBreadCrumbs, accept_none=False)
 
     def render_breadcrumbs(self, contextentity, path):
         # XXX hack: only display etype name or first non entity path part