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
2222import sys
@@ -62,7 +62,7 @@ except:
6262def 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
99100try :
100101 sys .stdout = sys .stderr = LOG
101102 main (out , err )
103+ except SystemExit :
104+ pass
102105except :
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