summaryrefslogtreecommitdiff
path: root/docs/zcml
diff options
context:
space:
mode:
authorChris McDonough <chrism@plope.com>2010-11-07 23:45:27 -0500
committerChris McDonough <chrism@plope.com>2010-11-07 23:45:27 -0500
commit6067de3ec37e647e1be12f91151faa23d76ab7d4 (patch)
tree37c4bb190dc5b17b08b0779b0976e2a053ff8933 /docs/zcml
parent0476846873e55a5d5f43a7d0ee0a83a260788264 (diff)
downloadpyramid-6067de3ec37e647e1be12f91151faa23d76ab7d4.tar.gz
pyramid-6067de3ec37e647e1be12f91151faa23d76ab7d4.tar.bz2
pyramid-6067de3ec37e647e1be12f91151faa23d76ab7d4.zip
- All references to events by interface
(e.g. ``pyramid.interfaces.INewRequest``) have been changed to reference their concrete classes (e.g. ``pyramid.events.NewRequest``) in documentation about making subscriptions.
Diffstat (limited to 'docs/zcml')
-rw-r--r--docs/zcml/subscriber.rst13
1 files changed, 6 insertions, 7 deletions
diff --git a/docs/zcml/subscriber.rst b/docs/zcml/subscriber.rst
index c48c89a9b..c04aecff2 100644
--- a/docs/zcml/subscriber.rst
+++ b/docs/zcml/subscriber.rst
@@ -11,12 +11,11 @@ Attributes
~~~~~~~~~~
``for``
- The class or :term:`interface` that you are subscribing the
- listener for, e.g. :class:`pyramid.interfaces.INewRequest`.
- Registering a subscriber for a specific class or interface limits
- the event types that the subscriber will receive to those specified
- by the interface or class. Default: ``zope.interface.Interface``
- (implying *any* event type).
+ The class or :term:`interface` that you are subscribing the listener for,
+ e.g. :class:`pyramid.events.NewRequest`. Registering a subscriber for a
+ specific class or interface limits the event types that the subscriber
+ will receive to those specified by the interface or class. Default:
+ ``zope.interface.Interface`` (implying *any* event type).
``handler``
A :term:`dotted Python name` which references an event handler
@@ -30,7 +29,7 @@ Examples
:linenos:
<subscriber
- for="pyramid.interfaces.INewRequest"
+ for="pyramid.events.NewRequest"
handler=".subscribers.handle_new_request"
/>