Skip to content

Commit bad5f2c

Browse files
author
Anthony Baxter
committed
renamed ROUNDUPS to ROUNDUP_INSTANCE_HOMES
sys.exit(0) if python version wrong.
1 parent b4f11c8 commit bad5f2c

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

cgi-bin/roundup.cgi

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,20 @@
11
#!/usr/bin/env python
22

3-
# $Id: roundup.cgi,v 1.3 2001-07-23 04:33:30 richard Exp $
3+
# $Id: roundup.cgi,v 1.4 2001-07-23 04:47:27 anthonybaxter Exp $
44

55
# python version check
66
import sys
77
if int(sys.version[0]) < 2:
88
print "Content-Type: text/plain\n"
99
print "Roundup requires Python 2.0 or newer."
10+
sys.exit(0)
1011

1112
#
1213
## Configuration
1314
#
1415

1516
# This indicates where the Roundup instance lives
16-
ROUNDUPS = {
17+
ROUNDUP_INSTANCE_HOMES = {
1718
'test': '/tmp/roundup_test',
1819
}
1920

@@ -90,8 +91,8 @@ try:
9091
path = string.split(os.environ['PATH_INFO'], '/')
9192
instance = path[1]
9293
os.environ['PATH_INFO'] = string.join(path[2:], '/')
93-
if ROUNDUPS.has_key(instance):
94-
instance_home = ROUNDUPS[instance]
94+
if ROUNDUP_INSTANCE_HOMES.has_key(instance):
95+
instance_home = ROUNDUP_INSTANCE_HOMES[instance]
9596
module_path, instance = os.path.split(instance_home)
9697
sys.path.insert(0, module_path)
9798
try:
@@ -110,6 +111,9 @@ sys.stdout, sys.stderr = out, err
110111

111112
#
112113
# $Log: not supported by cvs2svn $
114+
# Revision 1.3 2001/07/23 04:33:30 richard
115+
# brought the CGI instance config dict in line with roundup-server
116+
#
113117
# Revision 1.2 2001/07/23 04:31:40 richard
114118
# Fixed the roundup CGI script for updates to cgi_client.py
115119
#

0 commit comments

Comments
 (0)