Skip to content

Commit 7139fe6

Browse files
author
Richard Jones
committed
get ZRoundup working... still not quite right
1 parent 0f1e706 commit 7139fe6

File tree

2 files changed

+5
-10
lines changed

2 files changed

+5
-10
lines changed

frontends/ZRoundup/ZRoundup.py

Lines changed: 2 additions & 7 deletions
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.13 2002-09-10 03:01:18 richard Exp $
17+
# $Id: ZRoundup.py,v 1.14 2002-10-10 03:47:27 richard Exp $
1818
#
1919
''' ZRoundup module - exposes the roundup web interface to Zope
2020
@@ -149,10 +149,7 @@ def _opendb(self):
149149
else:
150150
# For some reason, CRs are embeded in multiline notes.
151151
# It doesn't occur with apache/roundup.cgi, though.
152-
form = self.REQUEST.form
153-
if form.has_key( '__note' ) :
154-
form['__note'] = form['__note'].replace( '\r' , '' )
155-
form = FormWrapper(form)
152+
form = FormWrapper(self.REQUEST.form)
156153

157154
return instance.Client(instance, request, env, form)
158155

@@ -161,9 +158,7 @@ def _opendb(self):
161158
def index_html(self):
162159
'''Alias index_html to roundup's index
163160
'''
164-
165161
# Redirect misdirected requests -- bugs 558867 , 565992
166-
167162
# PATH_INFO, as defined by the CGI spec, has the *real* request path
168163
orig_path = self.REQUEST.environ[ 'PATH_INFO' ]
169164
if orig_path[-1] != '/' :

frontends/ZRoundup/__init__.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,15 +14,15 @@
1414
# BASIS, AND THERE IS NO OBLIGATION WHATSOEVER TO PROVIDE MAINTENANCE,
1515
# SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
1616
#
17-
# $Id: __init__.py,v 1.3 2002-09-10 03:01:18 richard Exp $
17+
# $Id: __init__.py,v 1.4 2002-10-10 03:47:27 richard Exp $
1818
#
1919
__version__='1.0'
2020

2121
import os
2222
# figure where ZRoundup is installed
2323
here = None
24-
if os.environ.has_key('TRACKER_HOME'):
25-
here = os.environ['TRACKER_HOME']
24+
if os.environ.has_key('INSTANCE_HOME'):
25+
here = os.environ['INSTANCE_HOME']
2626
path = os.path.join(here, 'Products', 'ZRoundup')
2727
if not os.path.exists(path):
2828
path = os.path.join(here, 'lib', 'python', 'Products', 'ZRoundup')

0 commit comments

Comments
 (0)