--- 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