[3.10 bw compat] ensure context is specified, else crash on RsetBox
authorSylvain Thénault <sylvain.thenault@logilab.fr>
Mon, 25 Oct 2010 10:14:01 +0200
changeset 6612 2f2871fbfb51
parent 6611 eb8daa7966ee
child 6613 e7ff604491b2
[3.10 bw compat] ensure context is specified, else crash on RsetBox
web/views/boxes.py
--- a/web/views/boxes.py	Fri Oct 22 20:01:22 2010 +0200
+++ b/web/views/boxes.py	Mon Oct 25 10:14:01 2010 +0200
@@ -246,6 +246,7 @@
             self.cw_extra_kwargs['dispctrl'].setdefault('use_list_limit', 1)
         if title:
             self.cw_extra_kwargs['title'] = title
+        self.cw_extra_kwargs.setdefault('context', 'incontext')
         box = self._cw.vreg['ctxcomponents'].select(
             'rsetbox', self._cw, rset=self.cw_rset, vid='autolimited',
             **self.cw_extra_kwargs)