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 331e13a4d..f96167402 100644 --- a/docs/tutorials/zeo/index.rst +++ b/docs/tutorials/zeo/index.rst @@ -167,17 +167,17 @@ Configuration from myapp.models import MyModel import transaction - def app(global_config, **kw): + def app(global_config, **settings): """ This function returns a repoze.bfg.router.Router object. It is usually called by the PasteDeploy framework during ``paster serve``""" # paster app config callback - zodb_uri = kw['zodb_uri'] + zodb_uri = settings['zodb_uri'] finder = PersistentApplicationFinder(zodb_uri, appmaker) def get_root(request): return finder(request.environ) import myapp - return make_app(get_root, myapp, options=kw) + return make_app(get_root, myapp, settings=settings) def appmaker(root): if not 'myapp' in root: |
