From: richard Date: Tue, 14 May 2002 23:36:25 +0000 (+0000) Subject: . fixed SCRIPT_NAME in ZRoundup for instances not at top level of Zope X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=5ef76a014e3d16005c541a4a40b5ca6c8ca94f9d;p=roundup.git . fixed SCRIPT_NAME in ZRoundup for instances not at top level of Zope (thanks dman) git-svn-id: http://svn.roundup-tracker.org/svnroot/roundup/trunk@730 57a73879-2fb5-44c3-a270-3262357dd7e2 --- diff --git a/CHANGES.txt b/CHANGES.txt index 0601618..4ffa5fb 100644 --- a/CHANGES.txt +++ b/CHANGES.txt @@ -38,6 +38,9 @@ Fixed: 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: diff --git a/frontends/ZRoundup/ZRoundup.py b/frontends/ZRoundup/ZRoundup.py index 0b22768..5a40435 100644 --- a/frontends/ZRoundup/ZRoundup.py +++ b/frontends/ZRoundup/ZRoundup.py @@ -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 @@ class ZRoundup(Item, PropertyManager, Implicit, Persistent): 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 @@ modulesecurity.apply(globals()) # # $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 #