Exemple #1
0
    def render(self,request):
        """Render the wsgi response

        :param Request request: A wsgi request
        :return: NOT_DONE_YET - Some twisted-related return
        """
        response = wsgi._WSGIResponse(self._reactor, self._threadpool, self._application, request)
        response.run()
        return NOT_DONE_YET
    def render(self, request):
        """
        Turn the request into the appropriate C{environ} C{dict} suitable to be
        passed to the WSGI application object and then pass it on.

        The WSGI application object is given almost complete control of the
        rendering process.  C{NOT_DONE_YET} will always be returned in order
        and response completion will be dictated by the application object, as
        will the status, headers, and the response body.
        """
        response = _WSGIResponse(
            self._reactor, self._threadpool, self._application, request)
        response.environ['IRequest']=request
        response.start()
        return NOT_DONE_YET
Exemple #3
0
    def render(self, request):
        """
        Turn the request into the appropriate C{environ} C{dict} suitable to be
        passed to the WSGI application object and then pass it on.

        The WSGI application object is given almost complete control of the
        rendering process.  C{NOT_DONE_YET} will always be returned in order
        and response completion will be dictated by the application object, as
        will the status, headers, and the response body.
        """
        response = _WSGIResponse(self._reactor, self._threadpool,
                                 self._application, request)
        response.environ['IRequest'] = request
        response.start()
        return NOT_DONE_YET
Exemple #4
0
 def render(self,request):
     response = wsgi._WSGIResponse(self._reactor, self._threadpool, self._application, request)
     response.run()
     return NOT_DONE_YET