From d7f2590a4c2c2164bdb01ba977119ccbb6b2b09c Mon Sep 17 00:00:00 2001 From: Chris McDonough Date: Thu, 9 Dec 2010 02:30:23 -0500 Subject: fix docs: pyramid.configuration -> pyramid.config --- docs/narr/events.rst | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'docs/narr/events.rst') diff --git a/docs/narr/events.rst b/docs/narr/events.rst index 1edc2c5b0..06b30883f 100644 --- a/docs/narr/events.rst +++ b/docs/narr/events.rst @@ -34,7 +34,7 @@ when it's called. The mere existence of a subscriber function, however, is not sufficient to arrange for it to be called. To arrange for the subscriber to be called, you'll need to use the -:meth:`pyramid.configuration.Configurator.add_subscriber` method or you'll +:meth:`pyramid.config.Configurator.add_subscriber` method or you'll need to use the :func:`pyramid.events.subscriber` decorator to decorate a function found via a :term:`scan`. @@ -42,7 +42,7 @@ function found via a :term:`scan`. You can imperatively configure a subscriber function to be called for some event type via the - :meth:`pyramid.configuration.Configurator.add_subscriber` + :meth:`pyramid.config.Configurator.add_subscriber` method (see also :term:`Configurator`): .. code-block:: python @@ -53,12 +53,12 @@ function found via a :term:`scan`. from subscribers import mysubscriber # "config" below is assumed to be an instance of a - # pyramid.configuration.Configurator object + # pyramid.config.Configurator object config.add_subscriber(mysubscriber, NewRequest) The first argument to - :meth:`pyramid.configuration.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. @@ -127,7 +127,7 @@ configuration startup: .. code-block:: python :linenos: - # config is an instance of pyramid.configuration.Configurator + # config is an instance of pyramid.config.Configurator config.add_subscriber('myproject.subscribers.handle_new_request', 'pyramid.events.NewRequest') -- cgit v1.2.3