diff options
| author | Chris McDonough <chrism@agendaless.com> | 2009-10-30 20:06:22 +0000 |
|---|---|---|
| committer | Chris McDonough <chrism@agendaless.com> | 2009-10-30 20:06:22 +0000 |
| commit | 27862b83712010e4d3f843f74111df260188d321 (patch) | |
| tree | 4126f19a128b0e00cddc0681f793adafd7f7cc9e /docs/tutorials/zeo | |
| parent | 8d3a5385e4f797999bf68fbb7ca1c592b32cb550 (diff) | |
| download | pyramid-27862b83712010e4d3f843f74111df260188d321.tar.gz pyramid-27862b83712010e4d3f843f74111df260188d321.tar.bz2 pyramid-27862b83712010e4d3f843f74111df260188d321.zip | |
Update documentation after root factory changes.
Diffstat (limited to 'docs/tutorials/zeo')
| -rw-r--r-- | docs/tutorials/zeo/index.rst | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/docs/tutorials/zeo/index.rst b/docs/tutorials/zeo/index.rst index 36d681acb..331e13a4d 100644 --- a/docs/tutorials/zeo/index.rst +++ b/docs/tutorials/zeo/index.rst @@ -173,7 +173,9 @@ Configuration serve``""" # paster app config callback zodb_uri = kw['zodb_uri'] - get_root = PersistentApplicationFinder(zodb_uri, appmaker) + finder = PersistentApplicationFinder(zodb_uri, appmaker) + def get_root(request): + return finder(request.environ) import myapp return make_app(get_root, myapp, options=kw) |
