web/views/boxes.py
changeset 6409 d75535983224
parent 6141 b8287e54b528
parent 6407 595e6807dda5
child 6479 16a402e91a54
--- a/web/views/boxes.py	Wed Oct 06 14:57:14 2010 +0200
+++ b/web/views/boxes.py	Thu Oct 07 19:04:07 2010 +0200
@@ -235,6 +235,9 @@
 
     def call(self, **kwargs):
         """display a list of entities by calling their <item_vid> view"""
+        if 'dispctrl' in self.cw_extra_kwargs:
+            # XXX do not modify dispctrl!
+            self.cw_extra_kwargs['dispctrl'].setdefault('subvid', 'outofcontext')
         box = self._cw.vreg['ctxcomponents'].select(
             'rsetbox', self._cw, rset=self.cw_rset, vid='autolimited',
             title=title, **self.cw_extra_kwargs)