'Used to create default verticals for the groups.
Assumes that a mutable modulestore is being used.'

def editor_saved(self, user, old_metadata, old_content):

    if (('user_partition_id' not in old_content) or (old_content['user_partition_id'] != self.user_partition_id)):
        selected_partition = self.get_selected_partition()
        if (selected_partition is not None):
            self.group_id_mapping = {}
            for group in selected_partition.groups:
                self._create_vertical_for_group(group, user.id)
    else:
        for (str_group_id, usage_key) in self.group_id_to_child.items():
            if (usage_key not in self.children):
                del self.group_id_to_child[str_group_id]
