Skip to content

Commit f79862c

Browse files
author
Richard Jones
committed
Fixed some URL issues in roundup.cgi, again thanks Juergen Hermann.
1 parent 42a1e2f commit f79862c

File tree

2 files changed

+30
-4
lines changed

2 files changed

+30
-4
lines changed

CHANGES.txt

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,14 @@
11
This file contains the changes to the Roundup system over time. The entries
22
are given with the most recent entry first.
33

4-
2001-10-?? - 0.3.0 ?final?
4+
2001-10-?? - 0.3.0
55
Fixed:
66
. Fixed a bug in HTMLTemplate changes.
77
. 'unread' to 'chatting' automagic status change was b0rken.
88
. Anonymous user lockout wasn't working.
9+
. roundup-server now works on Windows, thanks Juergen Hermann.
10+
. Fixed install documentation, also thanks Juergen Hermann.
11+
. Fixed some URL issues in roundup.cgi, again thanks Juergen Hermann.
912

1013
2001-10-23 - 0.3.0 pre 3
1114
Feature:

cgi-bin/roundup.cgi

Lines changed: 26 additions & 3 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.13 2001-10-05 02:23:24 richard Exp $
19+
# $Id: roundup.cgi,v 1.14 2001-10-27 00:22:35 richard Exp $
2020

2121
# python version check
2222
import sys
@@ -62,7 +62,7 @@ except:
6262
def main(out, err):
6363
import os, string
6464
import roundup.instance
65-
path = string.split(os.environ['PATH_INFO'], '/')
65+
path = string.split(os.environ.get('PATH_INFO', '/'), '/')
6666
instance = path[1]
6767
os.environ['INSTANCE_NAME'] = instance
6868
os.environ['PATH_INFO'] = string.join(path[2:], '/')
@@ -88,7 +88,8 @@ def main(out, err):
8888
w('<html><head><title>Roundup instances index</title><head>\n')
8989
w('<body><h1>Roundup instances index</h1><ol>\n')
9090
for instance in ROUNDUP_INSTANCE_HOMES.keys():
91-
w('<li><a href="%s/index">%s</a>\n'%(urllib.quote(instance),
91+
w('<li><a href="%s/%s/index">%s</a>\n'%(
92+
os.environ['SCRIPT_NAME'], urllib.quote(instance),
9293
instance))
9394
w('</ol></body></html>')
9495

@@ -99,6 +100,8 @@ out, err = sys.stdout, sys.stderr
99100
try:
100101
sys.stdout = sys.stderr = LOG
101102
main(out, err)
103+
except SystemExit:
104+
pass
102105
except:
103106
sys.stdout, sys.stderr = out, err
104107
out.write('Content-Type: text/html\n\n')
@@ -108,6 +111,26 @@ sys.stdout, sys.stderr = out, err
108111

109112
#
110113
# $Log: not supported by cvs2svn $
114+
# Revision 1.13 2001/10/05 02:23:24 richard
115+
# . roundup-admin create now prompts for property info if none is supplied
116+
# on the command-line.
117+
# . hyperdb Class getprops() method may now return only the mutable
118+
# properties.
119+
# . Login now uses cookies, which makes it a whole lot more flexible. We can
120+
# now support anonymous user access (read-only, unless there's an
121+
# "anonymous" user, in which case write access is permitted). Login
122+
# handling has been moved into cgi_client.Client.main()
123+
# . The "extended" schema is now the default in roundup init.
124+
# . The schemas have had their page headings modified to cope with the new
125+
# login handling. Existing installations should copy the interfaces.py
126+
# file from the roundup lib directory to their instance home.
127+
# . Incorrectly had a Bizar Software copyright on the cgitb.py module from
128+
# Ping - has been removed.
129+
# . Fixed a whole bunch of places in the CGI interface where we should have
130+
# been returning Not Found instead of throwing an exception.
131+
# . Fixed a deviation from the spec: trying to modify the 'id' property of
132+
# an item now throws an exception.
133+
#
111134
# Revision 1.12 2001/10/01 05:55:41 richard
112135
# Fixes to the top-level index
113136
#

0 commit comments

Comments
 (0)