Skip to content

Commit fba376c

Browse files
author
Richard Jones
committed
Fixes to the top-level index
1 parent 2df3985 commit fba376c

File tree

1 file changed

+10
-6
lines changed

1 file changed

+10
-6
lines changed

cgi-bin/roundup.cgi

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
# BASIS, AND THERE IS NO OBLIGATION WHATSOEVER TO PROVIDE MAINTENANCE,
1717
# SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
1818
#
19-
# $Id: roundup.cgi,v 1.11 2001-09-29 13:27:00 richard Exp $
19+
# $Id: roundup.cgi,v 1.12 2001-10-01 05:55:41 richard Exp $
2020

2121
# python version check
2222
import sys
@@ -31,22 +31,21 @@ if int(sys.version[0]) < 2:
3131

3232
# This indicates where the Roundup instance lives
3333
ROUNDUP_INSTANCE_HOMES = {
34-
'test': '/tmp/roundup_test',
34+
'demo': '/var/roundup/instances/demo',
3535
}
3636

3737
# Where to log debugging information to. Use an instance of DevNull if you
3838
# don't want to log anywhere.
3939
class DevNull:
4040
def write(self, info):
4141
pass
42-
LOG = open('/var/log/roundup.cgi.log', 'a')
43-
#LOG = DevNull()
42+
#LOG = open('/var/log/roundup.cgi.log', 'a')
43+
LOG = DevNull()
4444

4545
#
4646
## end configuration
4747
#
4848

49-
5049
#
5150
# Set up the error handler
5251
#
@@ -100,6 +99,7 @@ def main(instance, out):
10099
def index(out):
101100
''' Print up an index of the available instances
102101
'''
102+
import urllib
103103
w = out.write
104104
w("Content-Type: text/html\n\n")
105105
w('<html><head><title>Roundup instances index</title><head>\n')
@@ -125,7 +125,7 @@ try:
125125
instance = roundup.instance.open(instance_home)
126126
main(instance, out)
127127
else:
128-
index()
128+
index(out)
129129
except:
130130
sys.stdout, sys.stderr = out, err
131131
out.write('Content-Type: text/html\n\n')
@@ -135,6 +135,10 @@ sys.stdout, sys.stderr = out, err
135135

136136
#
137137
# $Log: not supported by cvs2svn $
138+
# Revision 1.11 2001/09/29 13:27:00 richard
139+
# CGI interfaces now spit up a top-level index of all the instances they can
140+
# serve.
141+
#
138142
# Revision 1.10 2001/08/07 00:24:42 richard
139143
# stupid typo
140144
#

0 commit comments

Comments
 (0)