def fromRequest(klass, request):
        uri = request.prePathURL()
        if '?' in request.uri:
            uri += '?' + request.uri.split('?')[-1]
        return klass.fromString(uri)
Create a new L{URL} instance which is the same as the URL represented
dataset/ETHPy150Open twisted/nevow/nevow/url.py/URL.fromRequest