diff options
| author | Casey Duncan <casey.duncan@gmail.com> | 2010-12-12 09:40:19 -0700 |
|---|---|---|
| committer | Casey Duncan <casey.duncan@gmail.com> | 2010-12-12 09:40:19 -0700 |
| commit | 226c469217cbddc3443da2a60dc414b82021bcbe (patch) | |
| tree | c049b1c25b4b70a43f2b99f8515fd3d628cbffd2 /docs/narr/configuration.rst | |
| parent | 87a6ffdb91ae9f983169c3e9da15ea0266745a74 (diff) | |
| parent | fee38663daccc0130d0c34dbc5a14e67bef2e183 (diff) | |
| download | pyramid-226c469217cbddc3443da2a60dc414b82021bcbe.tar.gz pyramid-226c469217cbddc3443da2a60dc414b82021bcbe.tar.bz2 pyramid-226c469217cbddc3443da2a60dc414b82021bcbe.zip | |
fix merge conflicts
Diffstat (limited to 'docs/narr/configuration.rst')
| -rw-r--r-- | docs/narr/configuration.rst | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/docs/narr/configuration.rst b/docs/narr/configuration.rst index cf1f1ae28..4f26b092a 100644 --- a/docs/narr/configuration.rst +++ b/docs/narr/configuration.rst @@ -38,7 +38,7 @@ imperatively: :linenos: from paste.httpserver import serve - from pyramid.configuration import Configurator + from pyramid.config import Configurator from pyramid.response import Response def hello_world(request): @@ -98,7 +98,7 @@ attribute to the ``hello`` function, making it available for a :app:`Pyramid` is willing to :term:`scan` a module or a package and its subpackages for decorations when the -:meth:`pyramid.configuration.Configurator.scan` method is invoked: +:meth:`pyramid.config.Configurator.scan` method is invoked: scanning implies searching for configuration declarations in a package and its subpackages. For example: @@ -116,7 +116,7 @@ and its subpackages. For example: return Response('Hello') if __name__ == '__main__': - from pyramid.configuration import Configurator + from pyramid.config import Configurator config = Configurator() config.scan() app = config.make_wsgi_app() @@ -136,7 +136,7 @@ the intent of the configuration decoration. In the example above, this is best represented as the scanner translating the arguments to :class:`pyramid.view.view_config` into a -call to the :meth:`pyramid.configuration.Configurator.add_view` +call to the :meth:`pyramid.config.Configurator.add_view` method, effectively: .. ignore-next-block |
