1.1 --- a/WebStack/Adapters/WSGI.py Thu Dec 02 16:39:17 2004 +0000
1.2 +++ b/WebStack/Adapters/WSGI.py Thu Dec 02 16:39:39 2004 +0000
1.3 @@ -28,6 +28,13 @@
1.4 strings comprising the response body text.
1.5 """
1.6
1.7 + # NOTE: It would be best to give start_response to the transaction so
1.8 + # NOTE: that the underlying response's write method can be used by the
1.9 + # NOTE: transaction directly. Unfortunately, WebStack doesn't provide
1.10 + # NOTE: any means of declaring when the headers have been set and when
1.11 + # NOTE: response body output is the only thing to be subsequently
1.12 + # NOTE: produced.
1.13 +
1.14 trans = WebStack.WSGI.Transaction(environ)
1.15
1.16 try:
1.17 @@ -44,6 +51,7 @@
1.18 trans.commit()
1.19
1.20 # NOTE: Provide sensible messages.
1.21 + # NOTE: Ignoring the write method returned by start_response.
1.22
1.23 start_response(
1.24 "%s WebStack status" % trans.get_response_code(),