web/views/boxes.py
changeset 3491 48b26bfd6f02
parent 3451 6b46d73823f5
child 3524 a3431f4e2f40
equal deleted inserted replaced
3490:1acc89d4a512 3491:48b26bfd6f02
    51         box = BoxWidget(title, self.__regid__, _class="greyBoxFrame")
    51         box = BoxWidget(title, self.__regid__, _class="greyBoxFrame")
    52         self._menus_in_order = []
    52         self._menus_in_order = []
    53         self._menus_by_id = {}
    53         self._menus_by_id = {}
    54         # build list of actions
    54         # build list of actions
    55         actions = self._cw.vreg['actions'].possible_actions(self._cw, self.cw_rset,
    55         actions = self._cw.vreg['actions'].possible_actions(self._cw, self.cw_rset,
    56                                                         view=view)
    56                                                             view=view)
    57         other_menu = self._get_menu('moreactions', _('more actions'))
    57         other_menu = self._get_menu('moreactions', _('more actions'))
    58         for category, defaultmenu in (('mainactions', box),
    58         for category, defaultmenu in (('mainactions', box),
    59                                       ('moreactions', other_menu),
    59                                       ('moreactions', other_menu),
    60                                       ('addrelated', None)):
    60                                       ('addrelated', None)):
    61             for action in actions.get(category, ()):
    61             for action in actions.get(category, ()):