[primary] RsetBox view should give dispctrl & all to its subview. Also, don't use csv when in boxes.
--- 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)