summaryrefslogtreecommitdiff
path: root/docs/narr/events.rst
diff options
context:
space:
mode:
authorChris McDonough <chrism@plope.com>2011-01-27 23:06:55 -0500
committerChris McDonough <chrism@plope.com>2011-01-27 23:06:55 -0500
commit70acd25f40f32fc6cbb3b5d38a695b8982b52a31 (patch)
treeecaee199a36054a3664c39a7955cb441aaf6503d /docs/narr/events.rst
parent45c45f3ba6b688c988957056cb2c49883329dfe5 (diff)
downloadpyramid-70acd25f40f32fc6cbb3b5d38a695b8982b52a31.tar.gz
pyramid-70acd25f40f32fc6cbb3b5d38a695b8982b52a31.tar.bz2
pyramid-70acd25f40f32fc6cbb3b5d38a695b8982b52a31.zip
module name contractions
Diffstat (limited to 'docs/narr/events.rst')
-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 224eeca16..929208083 100644
--- a/docs/narr/events.rst
+++ b/docs/narr/events.rst
@@ -43,7 +43,7 @@ Configuring an Event Listener Imperatively
You can imperatively configure a subscriber function to be called
for some event type via the
-:meth:`pyramid.config.Configurator.add_subscriber`
+:meth:`~pyramid.config.Configurator.add_subscriber`
method (see also :term:`Configurator`):
.. code-block:: python
@@ -59,7 +59,7 @@ method (see also :term:`Configurator`):
config.add_subscriber(mysubscriber, NewRequest)
The first argument to
-:meth:`pyramid.config.Configurator.add_subscriber` is the
+:meth:`~pyramid.config.Configurator.add_subscriber` is the
subscriber function (or a :term:`dotted Python name` which refers
to a subscriber callable); the second argument is the event type.
@@ -79,10 +79,9 @@ type via the :func:`pyramid.events.subscriber` function.
def mysubscriber(event):
event.request.foo = 1
-When the :func:`pyramid.subscriber` decorator is used a
+When the :func:`~pyramid.events.subscriber` decorator is used a
:term:`scan` must be performed against the package containing the
-decorated function for the decorator to have any effect. See
-:func:`pyramid.subscriber` for more information.
+decorated function for the decorator to have any effect.
Either of the above registration examples implies that every time the
:app:`Pyramid` framework emits an event object that supplies an