Commit 519627ca authored by Michel Pelletier's avatar Michel Pelletier

fixed signature bugs

parent 1066bfbd
......@@ -84,7 +84,7 @@
##############################################################################
class PropertySheet:
""""
"""
A PropertySheet is an abstraction for organizing and working
with a set of related properties. Conceptually it acts like a
......
......@@ -121,7 +121,7 @@ class Response:
'''
def setHeader(self, name, value, literal=0):
def setHeader(self, name, value):
'''
Sets an HTTP return header "name" with value "value", clearing
......@@ -144,27 +144,6 @@ class Response:
'''
def setBody(self, body, title='', is_error=0):
'''
Set the body of the response
Sets the return body equal to the (string) argument
"body". Also updates the "content-length" return header.
You can also specify a title, in which case the title and body
will be wrapped up in html, head, title, and body tags.
If the body is a 2-element tuple, then it will be treated as
(title,body)
If is_error is true then the HTML will be formatted as a Zope
error message instead of a generic HTML page.
Permission - Always available
'''
def setBase(self,base):
"""
......@@ -239,3 +218,20 @@ class Response:
Permission - Always available
"""
def write(self, data):
"""\
Return data as a stream
HTML data may be returned using a stream-oriented interface.
This allows the browser to display partial results while
computation of a response to proceed.
The published object should first set any output headers or
cookies on the response object.
Note that published objects must not generate any errors
after beginning stream-oriented output.
"""
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