summaryrefslogtreecommitdiff
path: root/docs/narr/configuration.rst
diff options
context:
space:
mode:
authorChris McDonough <chrism@plope.com>2010-12-09 02:50:15 -0500
committerChris McDonough <chrism@plope.com>2010-12-09 02:50:15 -0500
commitf360d9e6d9689dfe92a950e97e7e19c414655997 (patch)
treef0456af418ecfaf7d5a342556d2c5786b2aee979 /docs/narr/configuration.rst
parentc18b16d293ee60117747f0de042e2d75361d1fd8 (diff)
parent13173e9e1d1c5f3873e8bfed91e6f3ed561dafaf (diff)
downloadpyramid-f360d9e6d9689dfe92a950e97e7e19c414655997.tar.gz
pyramid-f360d9e6d9689dfe92a950e97e7e19c414655997.tar.bz2
pyramid-f360d9e6d9689dfe92a950e97e7e19c414655997.zip
Merge branch 'twophase'
Conflicts: pyramid/configuration.py
Diffstat (limited to 'docs/narr/configuration.rst')
-rw-r--r--docs/narr/configuration.rst8
1 files changed, 4 insertions, 4 deletions
diff --git a/docs/narr/configuration.rst b/docs/narr/configuration.rst
index ea3a6c866..28388ef96 100644
--- a/docs/narr/configuration.rst
+++ b/docs/narr/configuration.rst
@@ -39,7 +39,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):
@@ -99,7 +99,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:
@@ -117,7 +117,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()
@@ -137,7 +137,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