Commit 549f7e4a authored by Jim Fulton's avatar Jim Fulton

Moved the check for a false body here from Publish, since xml-rpc

doesn't mind false bodies.
parent 8babcee3
...@@ -84,8 +84,8 @@ ...@@ -84,8 +84,8 @@
############################################################################## ##############################################################################
'''CGI Response Output formatter '''CGI Response Output formatter
$Id: HTTPResponse.py,v 1.14 1999/05/24 21:01:43 jim Exp $''' $Id: HTTPResponse.py,v 1.15 1999/06/30 12:47:31 jim Exp $'''
__version__='$Revision: 1.14 $'[11:-2] __version__='$Revision: 1.15 $'[11:-2]
import string, types, sys, regex import string, types, sys, regex
from string import find, rfind, lower, upper, strip, split, join, translate from string import find, rfind, lower, upper, strip, split, join, translate
...@@ -270,6 +270,8 @@ class HTTPResponse(BaseResponse): ...@@ -270,6 +270,8 @@ class HTTPResponse(BaseResponse):
If is_error is true then the HTML will be formatted as a Zope error If is_error is true then the HTML will be formatted as a Zope error
message instead of a generic HTML page. message instead of a generic HTML page.
''' '''
if not body: return self
if type(body) is types.TupleType: if type(body) is types.TupleType:
title,body=body title,body=body
......
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