summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
Diffstat (limited to 'docs')
-rw-r--r--docs/narr/events.rst9
1 files changed, 4 insertions, 5 deletions
diff --git a/docs/narr/events.rst b/docs/narr/events.rst
index 376d7b796..900f8499d 100644
--- a/docs/narr/events.rst
+++ b/docs/narr/events.rst
@@ -107,11 +107,10 @@ Using An Event to Vary the Request Type
The most common usage of the ``INewRequestEvent`` is to attach an
:term:`interface` to the request to be able to differentiate, for
-example, a request issued by a browser from a request issued by an
-XML-RPC from a request issued by a REST client. This differentiation
-makes it possible to register different views against different
-``request_type`` interfaces; for instance, depending on request
-headers, you might return JSON or XML data.
+example, a request issued by a browser from a request issued by a REST
+client. This differentiation makes it possible to register different
+views against different ``request_type`` interfaces; for instance,
+depending on request headers, you might return JSON or XML data.
To do this, you should subscribe an function to the ``INewRequest``
event type, and you should use the ``zope.interface.alsoProvides`` API