'Handle a request.
Give me a request, I will give you a response.  Unless it\'s a type
of request I cannot handle myself, in which case I will raise
C{NotImplementedError}.  In that case, you can handle it yourself,
or add a method to me for handling that request type.
@raises NotImplementedError: When I do not have a handler defined
for that type of request.
@returntype: L{OpenIDResponse}'

def handleRequest(self, request):

    handler = getattr(self, ('openid_' + request.mode), None)
    if (handler is not None):
        return handler(request)
    else:
        raise NotImplementedError(('%s    has    no    handler    for    a    request    of    mode    %r.' % (self, request.mode)))
