# HG changeset patch # User paulb # Date 1102005579 0 # Node ID ecc194fa656abd1a1ed88c5fc8bee7a5d2f3a66b # Parent 5b7d416de613ca19a0bcfbf59d7a7bbcedc88837 [project @ 2004-12-02 16:39:39 by paulb] Added comments about potential improvements. diff -r 5b7d416de613 -r ecc194fa656a WebStack/Adapters/WSGI.py --- a/WebStack/Adapters/WSGI.py Thu Dec 02 16:39:17 2004 +0000 +++ b/WebStack/Adapters/WSGI.py Thu Dec 02 16:39:39 2004 +0000 @@ -28,6 +28,13 @@ strings comprising the response body text. """ + # NOTE: It would be best to give start_response to the transaction so + # NOTE: that the underlying response's write method can be used by the + # NOTE: transaction directly. Unfortunately, WebStack doesn't provide + # NOTE: any means of declaring when the headers have been set and when + # NOTE: response body output is the only thing to be subsequently + # NOTE: produced. + trans = WebStack.WSGI.Transaction(environ) try: @@ -44,6 +51,7 @@ trans.commit() # NOTE: Provide sensible messages. + # NOTE: Ignoring the write method returned by start_response. start_response( "%s WebStack status" % trans.get_response_code(),