summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 9500348)
raw | patch | inline | side by side (parent: 9500348)
author | richard <richard@57a73879-2fb5-44c3-a270-3262357dd7e2> | |
Mon, 23 Jul 2001 04:31:40 +0000 (04:31 +0000) | ||
committer | richard <richard@57a73879-2fb5-44c3-a270-3262357dd7e2> | |
Mon, 23 Jul 2001 04:31:40 +0000 (04:31 +0000) |
git-svn-id: http://svn.roundup-tracker.org/svnroot/roundup/trunk@39 57a73879-2fb5-44c3-a270-3262357dd7e2
CHANGES | patch | blob | history | |
cgi-bin/roundup.cgi | patch | blob | history |
index 1910b0714c0e9fcbe3e35775a9ae3986172d9f58..9d394c69da6a1817ea66847215395462b975bd51 100644 (file)
--- a/CHANGES
+++ b/CHANGES
. Major reshuffle of code to allow multiple roundup instances and a
single, site-packages -based installation. Also allows multiple database
back-ends.
-
+ . moved the bin/ proggies into the top dir, so that it all works
+ out-of-the-box
diff --git a/cgi-bin/roundup.cgi b/cgi-bin/roundup.cgi
index 4840d511b189d2ef0088edcd0fc554c89e2af75b..511e08b7fb46f6d4b02ec0f3a77f7409e0da7817 100755 (executable)
--- a/cgi-bin/roundup.cgi
+++ b/cgi-bin/roundup.cgi
#!/usr/bin/env python
-# $Id: roundup.cgi,v 1.1 2001-07-22 11:47:07 richard Exp $
+# $Id: roundup.cgi,v 1.2 2001-07-23 04:31:40 richard Exp $
# python version check
import sys
# This indicates where the Roundup instance lives
ROUNDUPS = {
- 'test': '/tmp/roundup_test',
+ 'roundup_test': '/tmp/',
}
# Where to log debugging information to. Use an instance of DevNull if you
auth = os.environ.get("HTTP_CGI_AUTHORIZATION", None)
message = 'Unauthorised'
if auth:
+ import binascii
l = binascii.a2b_base64(auth.split(' ')[1]).split(':')
user = l[0]
password = None
keys.sort()
out.write(message)
return
- client = instance.Client(out, os.environ, user)
+ client = instance.Client(out, db, os.environ, user)
try:
client.main()
except cgi_client.Unauthorised:
try:
sys.stdout = sys.stderr = LOG
import os, string
- instance = string.split(os.environ['PATH_INFO'], '/')[1]
+ path = string.split(os.environ['PATH_INFO'], '/')
+ instance = path[1]
+ os.environ['PATH_INFO'] = string.join(path[2:], '/')
if ROUNDUPS.has_key(instance):
instance_home = ROUNDUPS[instance]
sys.path.insert(0, instance_home)
#
# $Log: not supported by cvs2svn $
+# Revision 1.1 2001/07/22 11:47:07 richard
+# More Grande Splite
+#
#