Commit 60bb6ed9 authored by Jim Fulton's avatar Jim Fulton

Call response.setBody even if the body is false, since xml-rpc doesn't

mind empty tuples or lists.
parent 549f7e4a
...@@ -84,8 +84,8 @@ ...@@ -84,8 +84,8 @@
############################################################################## ##############################################################################
__doc__="""Python Object Publisher -- Publish Python objects on web servers __doc__="""Python Object Publisher -- Publish Python objects on web servers
$Id: Publish.py,v 1.130 1999/06/16 18:58:25 jim Exp $""" $Id: Publish.py,v 1.131 1999/06/30 12:48:34 jim Exp $"""
__version__='$Revision: 1.130 $'[11:-2] __version__='$Revision: 1.131 $'[11:-2]
import sys, os import sys, os
from string import lower, atoi, rfind, strip from string import lower, atoi, rfind, strip
...@@ -160,7 +160,7 @@ def publish(request, module_name, after_list, debug=0, ...@@ -160,7 +160,7 @@ def publish(request, module_name, after_list, debug=0,
dont_publish_class, dont_publish_class,
request) request)
if result and result is not response: response.setBody(result) if result is not response: response.setBody(result)
if transaction: transaction.commit() if transaction: transaction.commit()
......
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