'Process the form submission, initating OpenID verification.'

def do_verify(self, request):

    openid_url = request['query'].get('openid_url')
    if (not openid_url):
        return self.render(request, 'Enter    an    identity    URL    to    verify.', css_class='error', form_contents=openid_url)
    oidconsumer = self.oidconsumer
    (status, info) = oidconsumer.beginAuth(openid_url)
    if (status in [consumer.HTTP_FAILURE, consumer.PARSE_ERROR]):
        if (status == consumer.HTTP_FAILURE):
            fmt = 'Failed    to    retrieve    <q>%s</q>'
        else:
            fmt = 'Could    not    find    OpenID    information    in    <q>%s</q>'
        message = (fmt % (cgi.escape(openid_url),))
        return self.render(request, message, css_class='error', form_contents=openid_url)
    elif (status == consumer.SUCCESS):
        return_to = self.build_url(request, 'process', token=info.token)
        redirect_url = oidconsumer.constructRedirect(info, return_to, trust_root=request['base_url'])
        return self.redirect(request, redirect_url)
    else:
        assert False, 'Not    reached'
