• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

Chapter 39. The Life of a Request > The Request and the Publisher

The Request and the Publisher

As the request begins on its path, entering the publisher by using zope.publisher. publish.publish(), it also enters a Zope-pure domain. In fact, Zope does not really care how a request was created, as long as it implements IRequest. For example, when functional tests are executed, they create the request purely from fictional data and pass it through the publisher to analyze the response afterward.

From a high-level point of view, the publisher's publish() method is responsible for interpreting the request's information and causing the correct actions to occur. It starts out by traversing the given object path to an actual object, it calls the object, and, finally, it writes the result in the response. Everything else in this method has to do with handling errors and exceptions as well as providing enough hooks for other components to step in.


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint