Mercurial > p > roundup > code
changeset 1256:1621df560512
get ZRoundup working... still not quite right
| author | Richard Jones <richard@users.sourceforge.net> |
|---|---|
| date | Thu, 10 Oct 2002 03:47:27 +0000 |
| parents | e5af1b963837 |
| children | 93b80ad11ca8 |
| files | frontends/ZRoundup/ZRoundup.py frontends/ZRoundup/__init__.py |
| diffstat | 2 files changed, 5 insertions(+), 10 deletions(-) [+] |
line wrap: on
line diff
--- a/frontends/ZRoundup/ZRoundup.py Thu Oct 10 03:47:00 2002 +0000 +++ b/frontends/ZRoundup/ZRoundup.py Thu Oct 10 03:47:27 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.13 2002-09-10 03:01:18 richard Exp $ +# $Id: ZRoundup.py,v 1.14 2002-10-10 03:47:27 richard Exp $ # ''' ZRoundup module - exposes the roundup web interface to Zope @@ -149,10 +149,7 @@ else: # For some reason, CRs are embeded in multiline notes. # It doesn't occur with apache/roundup.cgi, though. - form = self.REQUEST.form - if form.has_key( '__note' ) : - form['__note'] = form['__note'].replace( '\r' , '' ) - form = FormWrapper(form) + form = FormWrapper(self.REQUEST.form) return instance.Client(instance, request, env, form) @@ -161,9 +158,7 @@ def index_html(self): '''Alias index_html to roundup's index ''' - # Redirect misdirected requests -- bugs 558867 , 565992 - # PATH_INFO, as defined by the CGI spec, has the *real* request path orig_path = self.REQUEST.environ[ 'PATH_INFO' ] if orig_path[-1] != '/' :
--- a/frontends/ZRoundup/__init__.py Thu Oct 10 03:47:00 2002 +0000 +++ b/frontends/ZRoundup/__init__.py Thu Oct 10 03:47:27 2002 +0000 @@ -14,15 +14,15 @@ # BASIS, AND THERE IS NO OBLIGATION WHATSOEVER TO PROVIDE MAINTENANCE, # SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS. # -# $Id: __init__.py,v 1.3 2002-09-10 03:01:18 richard Exp $ +# $Id: __init__.py,v 1.4 2002-10-10 03:47:27 richard Exp $ # __version__='1.0' import os # figure where ZRoundup is installed here = None -if os.environ.has_key('TRACKER_HOME'): - here = os.environ['TRACKER_HOME'] +if os.environ.has_key('INSTANCE_HOME'): + here = os.environ['INSTANCE_HOME'] path = os.path.join(here, 'Products', 'ZRoundup') if not os.path.exists(path): path = os.path.join(here, 'lib', 'python', 'Products', 'ZRoundup')
