'Return name and id of a group corresponding to `vertical`.'

def get_data_for_vertical(self, vertical):

    user_partition = self.descriptor.get_selected_partition()
    if user_partition:
        for group in user_partition.groups:
            group_id = unicode(group.id)
            child_location = self.group_id_to_child.get(group_id, None)
            if (child_location == vertical.location):
                return (group.name, group.id)
    return (None, None)
