[Checkins]
SVN: zope.publisher/trunk/src/zope/publisher/httpresults.txt
White space cleanup.
Stephan Richter
srichter at cosmos.phy.tufts.edu
Fri Jun 20 19:14:45 EDT 2008
Log message for revision 87609:
White space cleanup.
Changed:
U zope.publisher/trunk/src/zope/publisher/httpresults.txt
-=-
Modified: zope.publisher/trunk/src/zope/publisher/httpresults.txt
===================================================================
--- zope.publisher/trunk/src/zope/publisher/httpresults.txt 2008-06-20 21:48:28 UTC (rev 87608)
+++ zope.publisher/trunk/src/zope/publisher/httpresults.txt 2008-06-20 23:14:43 UTC (rev 87609)
@@ -9,7 +9,7 @@
usually HTML. Applications can override this by setting a response
headers (calling request.response.setHeader).
-In Zope 2, applications could also call response.write. This allows
+In Zope 2, applications could also call response.write. This allows
both:
- Effecient handling of large output
@@ -35,11 +35,11 @@
Alternatively, if the data you want to return is already in a
(non-temporary) file, just open and return that file. The publisher
(actually an adapter used by the publisher) will handle a returned
-file very efficiently.
+file very efficiently.
The publisher will compute the response content length from the file
automatically. It is up to applications to set the content type.
-It will also take care of positioning the file to it's beginning,
+It will also take care of positioning the file to it's beginning,
so applications don't need to do this beforehand.
This is actually accomplished via zope.app.wsgi.fileresult.FileResult,
@@ -82,7 +82,7 @@
>>> zope.component.provideAdapter(do_something_silly_to_unicode_results)
That's returning a unicode string, which is special cased to (1) make an
-iterable that is chunked, (2) encode, and (3) set content-length.
+iterable that is chunked, (2) encode, and (3) set content-length.
>>> request = TestRequest()
>>> request.response.setHeader('content-type', 'text/html')
@@ -135,4 +135,4 @@
>>> request.response.setResult(DirectResult(('hi',)))
>>> tuple(request.response.consumeBodyIter())
('hi',)
-
+
More information about the Checkins
mailing list