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, ()): |