From 4542cd95c5a8bc962395c53aade9c1782f81731d Mon Sep 17 00:00:00 2001 From: Chris McDonough Date: Sat, 15 Nov 2008 23:52:14 +0000 Subject: Don't mention XML-RPC. --- docs/narr/events.rst | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'docs') 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 -- cgit v1.2.3