Commit f0d10bd8 authored by Jim Fulton's avatar Jim Fulton

Added code to allow the request to change the response.

We want this for xml-rpc.
parent ec64a204
......@@ -84,8 +84,8 @@
##############################################################################
__doc__="""Python Object Publisher -- Publish Python objects on web servers
$Id: Publish.py,v 1.128 1999/04/12 16:18:20 amos Exp $"""
__version__='$Revision: 1.128 $'[11:-2]
$Id: Publish.py,v 1.129 1999/06/16 15:56:20 jim Exp $"""
__version__='$Revision: 1.129 $'[11:-2]
import sys, os
from string import lower, atoi, rfind, strip
......@@ -250,6 +250,7 @@ def publish_module(module_name,
stdout=response.stdout
if request is None:
request=Request(stdin, environ, response)
response=request.response # could have changed!
finally:
pass
response = publish(request, module_name, after_list, debug=debug)
......
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