def handleCheckIDRequest(request, openid_request):
 if (not openid_request.idSelect()):
  id_url = getViewURL(request, idPage)
  if (id_url != openid_request.identity):
   error_response = ProtocolError(openid_request.message, ('This server cannot verify the URL %r' % (openid_request.identity,)))
   return displayResponse(request, error_response)
 if openid_request.immediate:
  openid_response = openid_request.answer(False)
  return displayResponse(request, openid_response)
 else:
  setRequest(request, openid_request)
  return showDecidePage(request, openid_request)

def handleCheckIDRequest ( request , openid_request ) : if ( not openid_request . idSelect ( ) ) : id_url = getViewURL ( request , idPage ) if ( id_url != openid_request . identity ) : error_response = ProtocolError ( openid_request . message , ( 'This server cannot verify the URL %r' % ( openid_request . identity , ) ) ) return displayResponse ( request , error_response ) if openid_request . immediate : openid_response = openid_request . answer ( False ) return displayResponse ( request , openid_response ) else : setRequest ( request , openid_request ) return showDecidePage ( request , openid_request )
handle checkid_* requests .