summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 949b2e7)
raw | patch | inline | side by side (parent: 949b2e7)
author | richard <richard@57a73879-2fb5-44c3-a270-3262357dd7e2> | |
Mon, 1 Oct 2001 05:55:41 +0000 (05:55 +0000) | ||
committer | richard <richard@57a73879-2fb5-44c3-a270-3262357dd7e2> | |
Mon, 1 Oct 2001 05:55:41 +0000 (05:55 +0000) |
git-svn-id: http://svn.roundup-tracker.org/svnroot/roundup/trunk@266 57a73879-2fb5-44c3-a270-3262357dd7e2
cgi-bin/roundup.cgi | patch | blob | history |
diff --git a/cgi-bin/roundup.cgi b/cgi-bin/roundup.cgi
index 5dbf3d50719f4669d7ac6dc3df5a74dc6b3627f5..709582583d64d06667d6133b4c24227253733ede 100755 (executable)
--- a/cgi-bin/roundup.cgi
+++ b/cgi-bin/roundup.cgi
# BASIS, AND THERE IS NO OBLIGATION WHATSOEVER TO PROVIDE MAINTENANCE,
# SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
#
-# $Id: roundup.cgi,v 1.11 2001-09-29 13:27:00 richard Exp $
+# $Id: roundup.cgi,v 1.12 2001-10-01 05:55:41 richard Exp $
# python version check
import sys
# This indicates where the Roundup instance lives
ROUNDUP_INSTANCE_HOMES = {
- 'test': '/tmp/roundup_test',
+ 'demo': '/var/roundup/instances/demo',
}
# Where to log debugging information to. Use an instance of DevNull if you
class DevNull:
def write(self, info):
pass
-LOG = open('/var/log/roundup.cgi.log', 'a')
-#LOG = DevNull()
+#LOG = open('/var/log/roundup.cgi.log', 'a')
+LOG = DevNull()
#
## end configuration
#
-
#
# Set up the error handler
#
def index(out):
''' Print up an index of the available instances
'''
+ import urllib
w = out.write
w("Content-Type: text/html\n\n")
w('<html><head><title>Roundup instances index</title><head>\n')
instance = roundup.instance.open(instance_home)
main(instance, out)
else:
- index()
+ index(out)
except:
sys.stdout, sys.stderr = out, err
out.write('Content-Type: text/html\n\n')
#
# $Log: not supported by cvs2svn $
+# Revision 1.11 2001/09/29 13:27:00 richard
+# CGI interfaces now spit up a top-level index of all the instances they can
+# serve.
+#
# Revision 1.10 2001/08/07 00:24:42 richard
# stupid typo
#