Skip to content

Commit

Permalink
Fix minor formatting issues.
Browse files Browse the repository at this point in the history
  • Loading branch information
jugmac00 committed Feb 22, 2019
1 parent eec22a9 commit d4c33dd
Showing 1 changed file with 11 additions and 10 deletions.
21 changes: 11 additions & 10 deletions docs/zdgbook/ObjectPublishing.rst
Original file line number Diff line number Diff line change
Expand Up @@ -215,29 +215,30 @@ Publishing Methods
==================

Once the published object is located with traversal, Zope *publishes*
it in one of three possible ways.
it in one of three possible ways:

- Calling the published object -- If the published object is a
function or method or other callable object, the publisher calls it.
Later in the chapter you'll find out how the publisher figures out
what arguments to pass when calling.
function or method or another callable object, the publisher calls
it. Later in the chapter you'll find out how the publisher figures
out what arguments to pass when calling.

- Calling the default method -- If the published object is not
callable, the publisher uses the default method. For HTTP 'GET' and
'POST' requests the default method is 'index_html'. For other HTTP
requests such as 'PUT' the publisher looks for a method named by the
HTTP method. So for an HTTP 'HEAD' request, the publisher would
call the 'HEAD' method on the published object.
callable, the publisher uses the default method. For HTTP *GET* and
*POST* requests the default method is 'index_html'. For other HTTP
requests such as *PUT* the publisher looks for a method named by the
HTTP method. So for an HTTP *HEAD* request, the publisher would
call the *HEAD* method on the published object.

- Stringifying the published object -- If the published object isn't
callable, and doesn't have a default method, the publisher
publishes it using the Python 'str' function to turn it into a
publishes it using the Python ``str`` function to turn it into a
string.


After the response method has been determined and called, the
publisher must interpret the results.


Character Encodings for Responses
=================================

Expand Down

0 comments on commit d4c33dd

Please sign in to comment.