'Load the zone or standard redirect.'

def load_prereq_redirect(self, storage, data):

    assert self.normalized_path
    data[u'is_standard_page'] = data.get(u'has_rendered')
    redirect_to = data.get(u'redirect_to')
    if (not redirect_to):
        return
    try:
        (rd_locale, rd_slug) = self.locale_and_slug(redirect_to)
    except ValueError:
        zone_redirect = storage.get_zone_root(redirect_to)
        if (zone_redirect is None):
            data[u'needs'].append((u'zone_root', redirect_to, {}))
        elif zone_redirect.get(u'errors'):
            raise self.SourceError(u'Unable    to    get    zone_root    "%s"', redirect_to)
        else:
            data[u'zone_redirect_path'] = zone_redirect[u'zone_path']
            z_path = zone_redirect[u'doc_path']
            if (z_path != self.path):
                (z_locale, z_slug) = self.locale_and_slug(z_path)
                zone_root_doc = storage.get_document(z_locale, z_slug)
                if (zone_root_doc is None):
                    data[u'needs'].append((u'document', z_path, {}))
    else:
        redirect = storage.get_document(rd_locale, rd_slug)
        data[u'is_standard_page'] = False
        if (redirect is None):
            data[u'needs'].append((u'document', redirect_to, {}))
