Skip to content

Commit 43b86f8

Browse files
author
Richard Jones
committed
fixed SCRIPT_NAME in ZRoundup for instances not at top level of Zope
(thanks dman)
1 parent 3754bba commit 43b86f8

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

CHANGES.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,9 @@ Fixed:
3838
your database has a 1000 or more issues in it.
3939
. added missing documentation for a few of the config option values
4040
. file upload broke if you didn't supply a change note
41+
. fixed SCRIPT_NAME in ZRoundup for instances not at top level of Zope
42+
(thanks dman)
43+
4144

4245
2002-03-25 - 0.4.1
4346
Feature:

frontends/ZRoundup/ZRoundup.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
# BASIS, AND THERE IS NO OBLIGATION WHATSOEVER TO PROVIDE MAINTENANCE,
1515
# SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
1616
#
17-
# $Id: ZRoundup.py,v 1.4 2002-01-10 03:38:16 richard Exp $
17+
# $Id: ZRoundup.py,v 1.5 2002-05-14 23:36:25 richard Exp $
1818
#
1919
''' ZRoundup module - exposes the roundup web interface to Zope
2020
@@ -123,6 +123,7 @@ def _opendb(self):
123123
instance = roundup.instance.open(self.instance_home)
124124
request = RequestWrapper(self.REQUEST['RESPONSE'])
125125
env = self.REQUEST.environ
126+
env['SCRIPT_NAME'] = '/'.join(self.getPhysicalPath()[:-1])
126127
env['INSTANCE_NAME'] = self.id
127128
if env['REQUEST_METHOD'] == 'GET':
128129
# force roundup to re-parse the request because Zope fiddles
@@ -168,6 +169,9 @@ def __getitem__(self, item):
168169

169170
#
170171
# $Log: not supported by cvs2svn $
172+
# Revision 1.4 2002/01/10 03:38:16 richard
173+
# reformatting for 80 cols
174+
#
171175
# Revision 1.3 2001/12/12 23:55:00 richard
172176
# Fixed some problems with user editing
173177
#

0 commit comments

Comments
 (0)