'Generates menu items for nexenta'

def get_menu_items_nexenta(self):

    profile_list = [profile for profile in self.profiles]
    def sort_name(a, b):
        return cmp(a.name, b.name)
    profile_list.sort(sort_name)
    pxe_menu_items = ''
    grub_menu_items = ''
    for profile in profile_list:
        if (not profile.enable_menu):
            continue
        distro = profile.get_conceptual_parent()
        if (distro.name.find('nexenta') != (-1)):
            contents = self.write_pxe_file(filename=None, system=None, profile=profile, distro=distro, arch=distro.arch, include_header=False)
            if (contents is not None):
                pxe_menu_items += (contents + '\n')
            grub_contents = self.write_pxe_file(filename=None, system=None, profile=profile, distro=distro, arch=distro.arch, include_header=False, format='nexenta')
            if (grub_contents is not None):
                grub_menu_items += (grub_contents + '\n')
    return {'pxe': pxe_menu_items, 'grub': grub_menu_items}
