1.1 --- a/README.txt Sat Mar 21 00:34:24 2009 +0100 1.2 +++ b/README.txt Tue Jul 07 01:12:55 2009 +0200 1.3 @@ -79,6 +79,8 @@ 1.4 WebStack.Resources.Selectors. 1.5 * Added a filename attribute to FileContent instances, provided for file 1.6 upload parameters. 1.7 + * Made content_type an attribute of Transaction instances, always indicating 1.8 + the set content type for responses. 1.9 1.10 New in WebStack 1.2.7 (Changes since WebStack 1.2.6) 1.11 ----------------------------------------------------
2.1 --- a/WebStack/BaseHTTPRequestHandler.py Sat Mar 21 00:34:24 2009 +0100 2.2 +++ b/WebStack/BaseHTTPRequestHandler.py Tue Jul 07 01:12:55 2009 +0200 2.3 @@ -3,7 +3,7 @@ 2.4 """ 2.5 BaseHTTPRequestHandler classes. 2.6 2.7 -Copyright (C) 2004, 2005, 2006, 2007 Paul Boddie <paul@boddie.org.uk> 2.8 +Copyright (C) 2004, 2005, 2006, 2007, 2009 Paul Boddie <paul@boddie.org.uk> 2.9 2.10 This library is free software; you can redistribute it and/or 2.11 modify it under the terms of the GNU Lesser General Public 2.12 @@ -454,17 +454,11 @@ 2.13 2.14 self.headers_out[header] = value 2.15 2.16 - def set_content_type(self, content_type): 2.17 - 2.18 - """ 2.19 - Sets the 'content_type' for the response. 2.20 - """ 2.21 + # set_content_type(self, content_type) not reimplemented 2.22 2.23 - # The content type has to be written as a header, before actual content, 2.24 - # but after the response line. This means that some kind of buffering is 2.25 - # required. Hence, we don't write the header out immediately. 2.26 - 2.27 - self.content_type = content_type 2.28 + # The content type has to be written as a header, before actual content, 2.29 + # but after the response line. This means that some kind of buffering is 2.30 + # required. Hence, we don't write the header out immediately. 2.31 2.32 # Higher level response-related methods. 2.33
3.1 --- a/WebStack/CGI.py Sat Mar 21 00:34:24 2009 +0100 3.2 +++ b/WebStack/CGI.py Tue Jul 07 01:12:55 2009 +0200 3.3 @@ -3,7 +3,7 @@ 3.4 """ 3.5 CGI classes. 3.6 3.7 -Copyright (C) 2004, 2005, 2006, 2007 Paul Boddie <paul@boddie.org.uk> 3.8 +Copyright (C) 2004, 2005, 2006, 2007, 2009 Paul Boddie <paul@boddie.org.uk> 3.9 3.10 This library is free software; you can redistribute it and/or 3.11 modify it under the terms of the GNU Lesser General Public 3.12 @@ -438,17 +438,11 @@ 3.13 3.14 self.headers_out[header] = value 3.15 3.16 - def set_content_type(self, content_type): 3.17 - 3.18 - """ 3.19 - Sets the 'content_type' for the response. 3.20 - """ 3.21 + # set_content_type(self, content_type) not reimplemented 3.22 3.23 - # The content type has to be written as a header, before actual content, 3.24 - # but after the response line. This means that some kind of buffering is 3.25 - # required. Hence, we don't write the header out immediately. 3.26 - 3.27 - self.content_type = content_type 3.28 + # The content type has to be written as a header, before actual content, 3.29 + # but after the response line. This means that some kind of buffering is 3.30 + # required. Hence, we don't write the header out immediately. 3.31 3.32 # Higher level response-related methods. 3.33
4.1 --- a/WebStack/Django.py Sat Mar 21 00:34:24 2009 +0100 4.2 +++ b/WebStack/Django.py Tue Jul 07 01:12:55 2009 +0200 4.3 @@ -3,7 +3,7 @@ 4.4 """ 4.5 Django classes. 4.6 4.7 -Copyright (C) 2006, 2007 Paul Boddie <paul@boddie.org.uk> 4.8 +Copyright (C) 2006, 2007, 2009 Paul Boddie <paul@boddie.org.uk> 4.9 4.10 This library is free software; you can redistribute it and/or 4.11 modify it under the terms of the GNU Lesser General Public 4.12 @@ -407,7 +407,7 @@ 4.13 Sets the 'content_type' for the response. 4.14 """ 4.15 4.16 - self.content_type = content_type 4.17 + WebStack.Generic.Transaction.set_content_type(self, content_type) 4.18 self.response.headers["Content-Type"] = str(content_type) 4.19 4.20 # Higher level response-related methods.
5.1 --- a/WebStack/Generic.py Sat Mar 21 00:34:24 2009 +0100 5.2 +++ b/WebStack/Generic.py Tue Jul 07 01:12:55 2009 +0200 5.3 @@ -3,7 +3,7 @@ 5.4 """ 5.5 Generic Web framework interfaces. 5.6 5.7 -Copyright (C) 2004, 2005, 2006 Paul Boddie <paul@boddie.org.uk> 5.8 +Copyright (C) 2004, 2005, 2006, 2009 Paul Boddie <paul@boddie.org.uk> 5.9 5.10 This library is free software; you can redistribute it and/or 5.11 modify it under the terms of the GNU Lesser General Public 5.12 @@ -559,7 +559,7 @@ 5.13 Sets the 'content_type' for the response. 5.14 """ 5.15 5.16 - raise NotImplementedError, "set_content_type" 5.17 + self.content_type = content_type 5.18 5.19 # Higher level response-related methods. 5.20
6.1 --- a/WebStack/JavaServlet.py Sat Mar 21 00:34:24 2009 +0100 6.2 +++ b/WebStack/JavaServlet.py Tue Jul 07 01:12:55 2009 +0200 6.3 @@ -3,7 +3,7 @@ 6.4 """ 6.5 Java Servlet classes. 6.6 6.7 -Copyright (C) 2004, 2005, 2006, 2007 Paul Boddie <paul@boddie.org.uk> 6.8 +Copyright (C) 2004, 2005, 2006, 2007, 2009 Paul Boddie <paul@boddie.org.uk> 6.9 6.10 This library is free software; you can redistribute it and/or 6.11 modify it under the terms of the GNU Lesser General Public 6.12 @@ -498,6 +498,7 @@ 6.13 Sets the 'content_type' for the response. 6.14 """ 6.15 6.16 + WebStack.Generic.Transaction.set_content_type(self, content_type) 6.17 self.response.setContentType(str(content_type)) 6.18 6.19 # Higher level response-related methods.
7.1 --- a/WebStack/ModPython.py Sat Mar 21 00:34:24 2009 +0100 7.2 +++ b/WebStack/ModPython.py Tue Jul 07 01:12:55 2009 +0200 7.3 @@ -3,7 +3,7 @@ 7.4 """ 7.5 mod_python classes. 7.6 7.7 -Copyright (C) 2004, 2005, 2006, 2007 Paul Boddie <paul@boddie.org.uk> 7.8 +Copyright (C) 2004, 2005, 2006, 2007, 2009 Paul Boddie <paul@boddie.org.uk> 7.9 7.10 This library is free software; you can redistribute it and/or 7.11 modify it under the terms of the GNU Lesser General Public 7.12 @@ -426,7 +426,7 @@ 7.13 7.14 # Remember the content type for encoding purposes later. 7.15 7.16 - self.content_type = content_type 7.17 + WebStack.Generic.Transaction.set_content_type(self, content_type) 7.18 self.trans.content_type = str(content_type) 7.19 7.20 # Higher level response-related methods.
8.1 --- a/WebStack/Twisted.py Sat Mar 21 00:34:24 2009 +0100 8.2 +++ b/WebStack/Twisted.py Tue Jul 07 01:12:55 2009 +0200 8.3 @@ -3,7 +3,7 @@ 8.4 """ 8.5 Twisted classes. 8.6 8.7 -Copyright (C) 2004, 2005, 2006, 2007 Paul Boddie <paul@boddie.org.uk> 8.8 +Copyright (C) 2004, 2005, 2006, 2007, 2009 Paul Boddie <paul@boddie.org.uk> 8.9 8.10 This library is free software; you can redistribute it and/or 8.11 modify it under the terms of the GNU Lesser General Public 8.12 @@ -424,7 +424,7 @@ 8.13 8.14 # Remember the content type for encoding purposes later. 8.15 8.16 - self.content_type = content_type 8.17 + WebStack.Generic.Transaction.set_content_type(self, content_type) 8.18 self.trans.setHeader("Content-Type", str(content_type)) 8.19 8.20 # Higher level response-related methods.
9.1 --- a/WebStack/WSGI.py Sat Mar 21 00:34:24 2009 +0100 9.2 +++ b/WebStack/WSGI.py Tue Jul 07 01:12:55 2009 +0200 9.3 @@ -3,7 +3,7 @@ 9.4 """ 9.5 WSGI classes. 9.6 9.7 -Copyright (C) 2004, 2005, 2006, 2007 Paul Boddie <paul@boddie.org.uk> 9.8 +Copyright (C) 2004, 2005, 2006, 2007, 2009 Paul Boddie <paul@boddie.org.uk> 9.9 9.10 This library is free software; you can redistribute it and/or 9.11 modify it under the terms of the GNU Lesser General Public 9.12 @@ -442,17 +442,11 @@ 9.13 9.14 self.headers_out[header] = value 9.15 9.16 - def set_content_type(self, content_type): 9.17 - 9.18 - """ 9.19 - Sets the 'content_type' for the response. 9.20 - """ 9.21 + # set_content_type(self, content_type) not reimplemented 9.22 9.23 - # The content type has to be written as a header, before actual content, 9.24 - # but after the response line. This means that some kind of buffering is 9.25 - # required. Hence, we don't write the header out immediately. 9.26 - 9.27 - self.content_type = content_type 9.28 + # The content type has to be written as a header, before actual content, 9.29 + # but after the response line. This means that some kind of buffering is 9.30 + # required. Hence, we don't write the header out immediately. 9.31 9.32 # Higher level response-related methods. 9.33
10.1 --- a/WebStack/Webware.py Sat Mar 21 00:34:24 2009 +0100 10.2 +++ b/WebStack/Webware.py Tue Jul 07 01:12:55 2009 +0200 10.3 @@ -3,7 +3,7 @@ 10.4 """ 10.5 Webware classes. 10.6 10.7 -Copyright (C) 2004, 2005, 2006, 2007 Paul Boddie <paul@boddie.org.uk> 10.8 +Copyright (C) 2004, 2005, 2006, 2007, 2009 Paul Boddie <paul@boddie.org.uk> 10.9 10.10 This library is free software; you can redistribute it and/or 10.11 modify it under the terms of the GNU Lesser General Public 10.12 @@ -439,7 +439,7 @@ 10.13 10.14 # Remember the content type for encoding purposes later. 10.15 10.16 - self.content_type = content_type 10.17 + WebStack.Generic.Transaction.set_content_type(self, content_type) 10.18 return self.trans.response().setHeader("Content-Type", str(content_type)) 10.19 10.20 # Higher level response-related methods.
11.1 --- a/WebStack/Zope.py Sat Mar 21 00:34:24 2009 +0100 11.2 +++ b/WebStack/Zope.py Tue Jul 07 01:12:55 2009 +0200 11.3 @@ -3,7 +3,7 @@ 11.4 """ 11.5 Zope classes. 11.6 11.7 -Copyright (C) 2004, 2005, 2006, 2007 Paul Boddie <paul@boddie.org.uk> 11.8 +Copyright (C) 2004, 2005, 2006, 2007, 2009 Paul Boddie <paul@boddie.org.uk> 11.9 11.10 This library is free software; you can redistribute it and/or 11.11 modify it under the terms of the GNU Lesser General Public 11.12 @@ -414,7 +414,7 @@ 11.13 Sets the 'content_type' for the response. 11.14 """ 11.15 11.16 - self.content_type = content_type 11.17 + WebStack.Generic.Transaction.set_content_type(self, content_type) 11.18 self.response.setHeader("Content-Type", str(content_type)) 11.19 11.20 # Higher level response-related methods.
12.1 --- a/packages/ubuntu-feisty/jython-webstack/debian/changelog Sat Mar 21 00:34:24 2009 +0100 12.2 +++ b/packages/ubuntu-feisty/jython-webstack/debian/changelog Tue Jul 07 01:12:55 2009 +0200 12.3 @@ -31,8 +31,10 @@ 12.4 WebStack.Resources.Selectors. 12.5 * Added a filename attribute to FileContent instances, 12.6 provided for file upload parameters. 12.7 + * Made content_type an attribute of Transaction instances, 12.8 + always indicating the set content type for responses. 12.9 12.10 - -- Paul Boddie <paul@boddie.org.uk> Sat, 15 Nov 2008 02:27:03 +0100 12.11 + -- Paul Boddie <paul@boddie.org.uk> Tue, 07 Jul 2009 01:11:25 +0200 12.12 12.13 webstack (1.2.7-0ubuntu1) feisty; urgency=low 12.14
13.1 --- a/packages/ubuntu-feisty/python-webstack/debian/changelog Sat Mar 21 00:34:24 2009 +0100 13.2 +++ b/packages/ubuntu-feisty/python-webstack/debian/changelog Tue Jul 07 01:12:55 2009 +0200 13.3 @@ -31,8 +31,10 @@ 13.4 WebStack.Resources.Selectors. 13.5 * Added a filename attribute to FileContent instances, 13.6 provided for file upload parameters. 13.7 + * Made content_type an attribute of Transaction instances, 13.8 + always indicating the set content type for responses. 13.9 13.10 - -- Paul Boddie <paul@boddie.org.uk> Sat, 15 Nov 2008 02:26:43 +0100 13.11 + -- Paul Boddie <paul@boddie.org.uk> Tue, 07 Jul 2009 01:11:44 +0200 13.12 13.13 webstack (1.2.7-0ubuntu1) feisty; urgency=low 13.14
14.1 --- a/packages/ubuntu-gutsy/jython-webstack/debian/changelog Sat Mar 21 00:34:24 2009 +0100 14.2 +++ b/packages/ubuntu-gutsy/jython-webstack/debian/changelog Tue Jul 07 01:12:55 2009 +0200 14.3 @@ -31,8 +31,10 @@ 14.4 WebStack.Resources.Selectors. 14.5 * Added a filename attribute to FileContent instances, 14.6 provided for file upload parameters. 14.7 + * Made content_type an attribute of Transaction instances, 14.8 + always indicating the set content type for responses. 14.9 14.10 - -- Paul Boddie <paul@boddie.org.uk> Sat, 15 Nov 2008 02:27:03 +0100 14.11 + -- Paul Boddie <paul@boddie.org.uk> Tue, 07 Jul 2009 01:11:58 +0200 14.12 14.13 webstack (1.2.7-0ubuntu1) feisty; urgency=low 14.14
15.1 --- a/packages/ubuntu-gutsy/python-webstack/debian/changelog Sat Mar 21 00:34:24 2009 +0100 15.2 +++ b/packages/ubuntu-gutsy/python-webstack/debian/changelog Tue Jul 07 01:12:55 2009 +0200 15.3 @@ -31,8 +31,10 @@ 15.4 WebStack.Resources.Selectors. 15.5 * Added a filename attribute to FileContent instances, 15.6 provided for file upload parameters. 15.7 + * Made content_type an attribute of Transaction instances, 15.8 + always indicating the set content type for responses. 15.9 15.10 - -- Paul Boddie <paul@boddie.org.uk> Sat, 15 Nov 2008 02:26:43 +0100 15.11 + -- Paul Boddie <paul@boddie.org.uk> Tue, 07 Jul 2009 01:12:04 +0200 15.12 15.13 webstack (1.2.7-0ubuntu1) feisty; urgency=low 15.14
16.1 --- a/packages/ubuntu-hoary/python2.4-webstack/debian/changelog Sat Mar 21 00:34:24 2009 +0100 16.2 +++ b/packages/ubuntu-hoary/python2.4-webstack/debian/changelog Tue Jul 07 01:12:55 2009 +0200 16.3 @@ -31,8 +31,10 @@ 16.4 WebStack.Resources.Selectors. 16.5 * Added a filename attribute to FileContent instances, 16.6 provided for file upload parameters. 16.7 + * Made content_type an attribute of Transaction instances, 16.8 + always indicating the set content type for responses. 16.9 16.10 - -- Paul Boddie <paul@boddie.org.uk> Sat, 15 Nov 2008 02:24:13 +0100 16.11 + -- Paul Boddie <paul@boddie.org.uk> Tue, 07 Jul 2009 01:12:19 +0200 16.12 16.13 webstack (1.2.7-0ubuntu1) hoary; urgency=low 16.14