# HG changeset patch # User Sylvain Thénault # Date 1287647318 -7200 # Node ID 58f166d4142043f7db0eea306ab799dfff432fca # Parent 7e9a1a5919e80b40353569afee9c5f2a569c50d4 [boxes] take care to duplicated 'title' argument if already specified in cw_extra_kwargs diff -r 7e9a1a5919e8 -r 58f166d41420 web/views/boxes.py --- a/web/views/boxes.py Thu Oct 21 08:23:38 2010 +0200 +++ b/web/views/boxes.py Thu Oct 21 09:48:38 2010 +0200 @@ -244,9 +244,11 @@ # XXX do not modify dispctrl! self.cw_extra_kwargs['dispctrl'].setdefault('subvid', 'outofcontext') self.cw_extra_kwargs['dispctrl'].setdefault('use_list_limit', 1) + if title: + self.cw_extra_kwargs['title'] = title box = self._cw.vreg['ctxcomponents'].select( 'rsetbox', self._cw, rset=self.cw_rset, vid='autolimited', - title=title, **self.cw_extra_kwargs) + **self.cw_extra_kwargs) box.render(self.w)