'Returns the list of menus that match the name/value criteria provided.'

def get_menus_by_attribute(self, name, value):

    menus = self.get_registered_menus(for_rendering=False)
    return sorted(list(set([(menu.__name__, menu.name) for (menu_class_name, menu) in menus.items() if (getattr(menu, name, None) == value)])))
