1.1 --- a/WebStack/Django.py Thu Nov 16 23:39:56 2006 +0000
1.2 +++ b/WebStack/Django.py Thu Nov 16 23:40:10 2006 +0000
1.3 @@ -60,6 +60,17 @@
1.4 self.content.seek(0)
1.5 self.response.content = self.content.read()
1.6
1.7 + def rollback(self):
1.8 +
1.9 + """
1.10 + A special method, partially synchronising the transaction with
1.11 + framework-specific objects, but discarding previously emitted content
1.12 + that is to be replaced by an error message.
1.13 + """
1.14 +
1.15 + self.response = HttpResponse()
1.16 + self.content = StringIO()
1.17 +
1.18 # Server-related methods.
1.19
1.20 def get_server_name(self):