changeset 717:14e94c28bdb0

fixed SCRIPT_NAME in ZRoundup for instances not at top level of Zope (thanks dman)
author Richard Jones <richard@users.sourceforge.net>
date Tue, 14 May 2002 23:36:25 +0000
parents e35bb05bd858
children e10c37f53efd
files CHANGES.txt frontends/ZRoundup/ZRoundup.py
diffstat 2 files changed, 8 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/CHANGES.txt	Sun May 12 23:55:13 2002 +0000
+++ b/CHANGES.txt	Tue May 14 23:36:25 2002 +0000
@@ -38,6 +38,9 @@
    your database has a 1000 or more issues in it.
  . added missing documentation for a few of the config option values
  . file upload broke if you didn't supply a change note
+ . fixed SCRIPT_NAME in ZRoundup for instances not at top level of Zope
+   (thanks dman)
+
 
 2002-03-25 - 0.4.1
 Feature:
--- a/frontends/ZRoundup/ZRoundup.py	Sun May 12 23:55:13 2002 +0000
+++ b/frontends/ZRoundup/ZRoundup.py	Tue May 14 23:36:25 2002 +0000
@@ -14,7 +14,7 @@
 # BASIS, AND THERE IS NO OBLIGATION WHATSOEVER TO PROVIDE MAINTENANCE,
 # SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
 # 
-# $Id: ZRoundup.py,v 1.4 2002-01-10 03:38:16 richard Exp $
+# $Id: ZRoundup.py,v 1.5 2002-05-14 23:36:25 richard Exp $
 #
 ''' ZRoundup module - exposes the roundup web interface to Zope
 
@@ -123,6 +123,7 @@
         instance = roundup.instance.open(self.instance_home)
         request = RequestWrapper(self.REQUEST['RESPONSE'])
         env = self.REQUEST.environ
+        env['SCRIPT_NAME'] = '/'.join(self.getPhysicalPath()[:-1])
         env['INSTANCE_NAME'] = self.id
         if env['REQUEST_METHOD'] == 'GET':
             # force roundup to re-parse the request because Zope fiddles
@@ -168,6 +169,9 @@
 
 #
 # $Log: not supported by cvs2svn $
+# Revision 1.4  2002/01/10 03:38:16  richard
+# reformatting for 80 cols
+#
 # Revision 1.3  2001/12/12 23:55:00  richard
 # Fixed some problems with user editing
 #

Roundup Issue Tracker: http://roundup-tracker.org/