web/views/boxes.py
changeset 6479 16a402e91a54
parent 6409 d75535983224
child 6526 2f3ded081142
--- a/web/views/boxes.py	Wed Oct 13 16:17:37 2010 +0200
+++ b/web/views/boxes.py	Wed Oct 13 16:18:20 2010 +0200
@@ -222,7 +222,12 @@
         w(self.cw_extra_kwargs['title'])
 
     def render_body(self, w):
-        self._cw.view(self.cw_extra_kwargs['vid'], self.cw_rset, w=w)
+        if 'dispctrl' in self.cw_extra_kwargs:
+            # XXX do not modify dispctrl!
+            self.cw_extra_kwargs['dispctrl'].setdefault('subvid', 'outofcontext')
+            self.cw_extra_kwargs['dispctrl'].setdefault('use_list_limit', 1)
+        self._cw.view(self.cw_extra_kwargs['vid'], self.cw_rset, w=w,
+                      initargs=self.cw_extra_kwargs)
 
  # helper classes ##############################################################
 
@@ -238,6 +243,7 @@
         if 'dispctrl' in self.cw_extra_kwargs:
             # XXX do not modify dispctrl!
             self.cw_extra_kwargs['dispctrl'].setdefault('subvid', 'outofcontext')
+            self.cw_extra_kwargs['dispctrl'].setdefault('use_list_limit', 1)
         box = self._cw.vreg['ctxcomponents'].select(
             'rsetbox', self._cw, rset=self.cw_rset, vid='autolimited',
             title=title, **self.cw_extra_kwargs)