def _get_items(self, action_sets, attribute_name, root):

        items = []
        for action_set in action_sets:
            for item in getattr(action_set, attribute_name):
                if self._get_root(item.path, action_set.aliases) == root:
                    items.append(item)

                    # fixme: Hacky, but the model needs to maintain the
                    # action set that contributed the item.
                    item._action_set_ = action_set

                    # fixme: Even hackier if this is a menu then we need to
                    # tag the action set onto all of the groups.
                    if attribute_name in ['menus', 'toolbars']:
                        for group in item.groups:
                            group._action_set_ = action_set

        return items
Return all actions, groups or menus for a particular root.
dataset/ETHPy150Open enthought/envisage/envisage/ui/action/action_set_manager.py/ActionSetManager._get_items