diff options
Diffstat (limited to 'docs/tutorials/zeo')
| -rw-r--r-- | docs/tutorials/zeo/index.rst | 6 |
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: |
