summaryrefslogtreecommitdiff
path: root/docs/tutorials/zeo
diff options
context:
space:
mode:
Diffstat (limited to 'docs/tutorials/zeo')
-rw-r--r--docs/tutorials/zeo/index.rst4
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)