web/views/boxes.py
changeset 6536 fd059ab1a502
parent 6526 2f3ded081142
child 6573 58f166d41420
equal deleted inserted replaced
6533:f777c84bf7eb 6536:fd059ab1a502
   236     __metaclass__ = class_deprecated
   236     __metaclass__ = class_deprecated
   237     __deprecation_warning__ = '[3.10] SideBoxView is deprecated, use RsetBox instead (%(cls)s)'
   237     __deprecation_warning__ = '[3.10] SideBoxView is deprecated, use RsetBox instead (%(cls)s)'
   238 
   238 
   239     __regid__ = 'sidebox'
   239     __regid__ = 'sidebox'
   240 
   240 
   241     def call(self, **kwargs):
   241     def call(self, title=u'', **kwargs):
   242         """display a list of entities by calling their <item_vid> view"""
   242         """display a list of entities by calling their <item_vid> view"""
   243         if 'dispctrl' in self.cw_extra_kwargs:
   243         if 'dispctrl' in self.cw_extra_kwargs:
   244             # XXX do not modify dispctrl!
   244             # XXX do not modify dispctrl!
   245             self.cw_extra_kwargs['dispctrl'].setdefault('subvid', 'outofcontext')
   245             self.cw_extra_kwargs['dispctrl'].setdefault('subvid', 'outofcontext')
   246             self.cw_extra_kwargs['dispctrl'].setdefault('use_list_limit', 1)
   246             self.cw_extra_kwargs['dispctrl'].setdefault('use_list_limit', 1)