Commit 2a1aa075 authored by Jim Fulton's avatar Jim Fulton

Moved setting of RESPONSE key in REQUEST to be ealier in the process.

parent 666ef861
...@@ -370,7 +370,7 @@ Publishing a module using CGI ...@@ -370,7 +370,7 @@ Publishing a module using CGI
containing the module to be published) to the module name in the containing the module to be published) to the module name in the
cgi-bin directory. cgi-bin directory.
$Id: Publish.py,v 1.64 1997/11/07 15:01:30 jim Exp $""" $Id: Publish.py,v 1.65 1997/11/11 19:31:18 jim Exp $"""
#' #'
# Copyright # Copyright
# #
...@@ -425,7 +425,7 @@ $Id: Publish.py,v 1.64 1997/11/07 15:01:30 jim Exp $""" ...@@ -425,7 +425,7 @@ $Id: Publish.py,v 1.64 1997/11/07 15:01:30 jim Exp $"""
# See end of file for change log. # See end of file for change log.
# #
########################################################################## ##########################################################################
__version__='$Revision: 1.64 $'[11:-2] __version__='$Revision: 1.65 $'[11:-2]
def main(): def main():
...@@ -555,7 +555,8 @@ class ModulePublisher: ...@@ -555,7 +555,8 @@ class ModulePublisher:
request=self.request=Request(environ,other,stdin) request=self.request=Request(environ,other,stdin)
request.form=form request.form=form
if cookies is not None: request.cookies=cookies if cookies is not None: request.cookies=cookies
self.response=Response(stdout=stdout, stderr=stderr) self.response=response=Response(stdout=stdout, stderr=stderr)
request['RESPONSE']=response
self.stdin=stdin self.stdin=stdin
self.stdout=stdout self.stdout=stdout
self.stderr=stderr self.stderr=stderr
...@@ -888,7 +889,6 @@ class ModulePublisher: ...@@ -888,7 +889,6 @@ class ModulePublisher:
except: except:
return response.setBody(object) return response.setBody(object)
request['RESPONSE']=response
request['URL']=URL request['URL']=URL
request['PARENT_URL']=URL[:rfind(URL,'/')] request['PARENT_URL']=URL[:rfind(URL,'/')]
if parents: if parents:
...@@ -1366,6 +1366,9 @@ def publish_module(module_name, ...@@ -1366,6 +1366,9 @@ def publish_module(module_name,
# #
# $Log: Publish.py,v $ # $Log: Publish.py,v $
# Revision 1.65 1997/11/11 19:31:18 jim
# Moved setting of RESPONSE key in REQUEST to be ealier in the process.
#
# Revision 1.64 1997/11/07 15:01:30 jim # Revision 1.64 1997/11/07 15:01:30 jim
# Updated bobo traverse machinery and fixed bug in setting return status # Updated bobo traverse machinery and fixed bug in setting return status
# when exceptions occur. # when exceptions occur.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment