summaryrefslogtreecommitdiff
path: root/docs/tutorials/zeo
diff options
context:
space:
mode:
authorChris McDonough <chrism@agendaless.com>2009-12-09 05:26:41 +0000
committerChris McDonough <chrism@agendaless.com>2009-12-09 05:26:41 +0000
commit20ef6a98e7abaeb8c3ee1133eff39ab90a286df9 (patch)
treeb36091069a879c50bc5185f8abe116d572d7c84a /docs/tutorials/zeo
parent2bec99e31b8b22e1f5af4ebcc4a8d544be70c5e0 (diff)
downloadpyramid-20ef6a98e7abaeb8c3ee1133eff39ab90a286df9.tar.gz
pyramid-20ef6a98e7abaeb8c3ee1133eff39ab90a286df9.tar.bz2
pyramid-20ef6a98e7abaeb8c3ee1133eff39ab90a286df9.zip
Excise make_app from docs.
Diffstat (limited to 'docs/tutorials/zeo')
-rw-r--r--docs/tutorials/zeo/index.rst6
1 files changed, 3 insertions, 3 deletions
diff --git a/docs/tutorials/zeo/index.rst b/docs/tutorials/zeo/index.rst
index 6519145db..145bdf4f5 100644
--- a/docs/tutorials/zeo/index.rst
+++ b/docs/tutorials/zeo/index.rst
@@ -162,7 +162,7 @@ Configuration
.. code-block:: python
:linenos:
- from repoze.bfg.router import make_app
+ from repoze.bfg.configuration import Configurator
from repoze.zodbconn.finder import PersistentApplicationFinder
from myapp.models import MyModel
import transaction
@@ -176,8 +176,8 @@ Configuration
finder = PersistentApplicationFinder(zodb_uri, appmaker)
def get_root(request):
return finder(request.environ)
- import myapp
- return make_app(get_root, myapp, settings=settings)
+ config = Configurator(root_factory=get_root, settings=settings)
+ return config.make_wsgi_app()
def appmaker(root):
if not 'myapp' in root: