2004-03-26 | paulb | raw files shortlog changelog graph | [project @ 2004-03-26 18:58:43 by paulb] Added a commit method to Transaction. | |
WebStack/JavaServlet.py (file) |
1.1 --- a/WebStack/JavaServlet.py Fri Mar 26 18:58:31 2004 +0000 1.2 +++ b/WebStack/JavaServlet.py Fri Mar 26 18:58:43 2004 +0000 1.3 @@ -54,6 +54,15 @@ 1.4 self.response = response 1.5 self.status = None 1.6 1.7 + def commit(self): 1.8 + 1.9 + """ 1.10 + A special method, synchronising the transaction with framework-specific 1.11 + objects. 1.12 + """ 1.13 + 1.14 + self.get_response_stream().close() 1.15 + 1.16 # Request-related methods. 1.17 1.18 def get_request_stream(self):