web/box.py
changeset 5223 6abd6e3599f4
parent 4490 d45cde54d464
child 5423 e15abfdcce38
--- a/web/box.py	Mon Apr 12 14:41:01 2010 +0200
+++ b/web/box.py	Tue Apr 13 12:19:24 2010 +0200
@@ -12,7 +12,7 @@
 
 from cubicweb import Unauthorized, role as get_role, target as get_target
 from cubicweb.schema import display_name
-from cubicweb.selectors import (one_line_rset,  primary_view,
+from cubicweb.selectors import (no_cnx, one_line_rset,  primary_view,
                                 match_context_prop, partial_has_related_entities)
 from cubicweb.view import View, ReloadableMixIn
 
@@ -37,7 +37,7 @@
         box.render(self.w)
     """
     __registry__ = 'boxes'
-    __select__ = match_context_prop()
+    __select__ = ~no_cnx() & match_context_prop()
 
     categories_in_order = ()
     cw_property_defs = {