comparison roundup/cgi/client.py @ 2052:78e6a1e4984e

forward-port from maint branch
author Richard Jones <richard@users.sourceforge.net>
date Wed, 25 Feb 2004 23:27:54 +0000
parents f913b6beac35
children c091cacdc505
comparison
equal deleted inserted replaced
2049:5a5f66e6b0e1 2052:78e6a1e4984e
1 # $Id: client.py,v 1.164 2004-02-25 03:39:53 richard Exp $ 1 # $Id: client.py,v 1.165 2004-02-25 23:27:54 richard Exp $
2 2
3 """WWW request handler (also used in the stand-alone server). 3 """WWW request handler (also used in the stand-alone server).
4 """ 4 """
5 __docformat__ = 'restructuredtext' 5 __docformat__ = 'restructuredtext'
6 6
206 date = rfc822.formatdate(time.time() + 5) 206 date = rfc822.formatdate(time.time() + 5)
207 self.additional_headers['Expires'] = date 207 self.additional_headers['Expires'] = date
208 208
209 # render the content 209 # render the content
210 self.write(self.renderContext()) 210 self.write(self.renderContext())
211 except SeriousError, message:
212 self.write(str(message))
211 except Redirect, url: 213 except Redirect, url:
212 # let's redirect - if the url isn't None, then we need to do 214 # let's redirect - if the url isn't None, then we need to do
213 # the headers, otherwise the headers have been set before the 215 # the headers, otherwise the headers have been set before the
214 # exception was raised 216 # exception was raised
215 if url: 217 if url:

Roundup Issue Tracker: http://roundup-tracker.org/