[Twisted-web] Re: [Web-SIG] WSGI - alternate ideas, part II

Mary Gardiner mary-twisted at puzzling.org
Thu Sep 16 06:17:04 MDT 2004

On Thu, Sep 16, 2004, Peter Hunt wrote:
> I think that the application should be passed a finish() method as a
> parameter or start_response return value. If the WSGI application is
> not a generator and returns wsgi.NOT_DONE_YET (similar to
> Twisted.web's NOT_DONE_YET), it is required to call finish().
> Otherwise, the gateway will call finish() after the generator is
> finished or a string value is returned.

Does the NOT_DONE_YET convention still exist in Nevow/web2? It's
generally seemed to have been replaced by the more usual Twisted
convention of returning a Deferred when the data to be rendered is not
yet available.


More information about the Twisted-web mailing list