comparison cgi-bin/roundup.cgi @ 1304:61ad556cfc8d

working toward 0.5.2 release
author Richard Jones <richard@users.sourceforge.net>
date Wed, 06 Nov 2002 11:38:43 +0000
parents 347657425a10
children d51cb5225d4a a1e38322bd19
comparison
equal deleted inserted replaced
1303:71be6588904f 1304:61ad556cfc8d
14 # BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS 14 # BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
15 # FOR A PARTICULAR PURPOSE. THE CODE PROVIDED HEREUNDER IS ON AN "AS IS" 15 # FOR A PARTICULAR PURPOSE. THE CODE PROVIDED HEREUNDER IS ON AN "AS IS"
16 # BASIS, AND THERE IS NO OBLIGATION WHATSOEVER TO PROVIDE MAINTENANCE, 16 # BASIS, AND THERE IS NO OBLIGATION WHATSOEVER TO PROVIDE MAINTENANCE,
17 # SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS. 17 # SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
18 # 18 #
19 # $Id: roundup.cgi,v 1.34 2002-10-08 03:31:09 richard Exp $ 19 # $Id: roundup.cgi,v 1.35 2002-11-06 11:38:42 richard Exp $
20 20
21 # python version check 21 # python version check
22 from roundup import version_check 22 from roundup import version_check
23 from roundup.i18n import _ 23 from roundup.i18n import _
24 import sys 24 import sys
147 if os.environ.get('HTTPS', '') == 'on': 147 if os.environ.get('HTTPS', '') == 'on':
148 protocol = 'https' 148 protocol = 'https'
149 else: 149 else:
150 protocol = 'http' 150 protocol = 'http'
151 absolute_url = '%s://%s%s/'%(protocol, os.environ['HTTP_HOST'], 151 absolute_url = '%s://%s%s/'%(protocol, os.environ['HTTP_HOST'],
152 os.environ['REQUEST_URI']) 152 os.environ.get('REQUEST_URI', ''))
153 request.send_header('Location', absolute_url) 153 request.send_header('Location', absolute_url)
154 request.end_headers() 154 request.end_headers()
155 out.write('Moved Permanently') 155 out.write('Moved Permanently')
156 else: 156 else:
157 tracker_home = TRACKER_HOMES[tracker] 157 tracker_home = TRACKER_HOMES[tracker]

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