summaryrefslogtreecommitdiff
path: root/docs/narr/hooks.rst
diff options
context:
space:
mode:
authorAntti Haapala <antti@haapala.name>2013-11-17 19:08:18 +0200
committerAntti Haapala <antti@haapala.name>2013-11-17 19:08:18 +0200
commitfab44e1e402efbf37fc58875974e9ae42827446e (patch)
treebf13d3a849854048d998d9b0c139d7f7f4797495 /docs/narr/hooks.rst
parente697c98813a4acd332da5688867e799adfc9b835 (diff)
downloadpyramid-fab44e1e402efbf37fc58875974e9ae42827446e.tar.gz
pyramid-fab44e1e402efbf37fc58875974e9ae42827446e.tar.bz2
pyramid-fab44e1e402efbf37fc58875974e9ae42827446e.zip
Should return the simple_tween here, not the handler.
Diffstat (limited to 'docs/narr/hooks.rst')
-rw-r--r--docs/narr/hooks.rst2
1 files changed, 1 insertions, 1 deletions
diff --git a/docs/narr/hooks.rst b/docs/narr/hooks.rst
index 14009a094..f2542f1d7 100644
--- a/docs/narr/hooks.rst
+++ b/docs/narr/hooks.rst
@@ -1014,7 +1014,7 @@ You can write the tween factory as a simple closure-returning function:
return response
- return handler
+ return simple_tween
Alternatively, the tween factory can be a class with the ``__call__`` magic
method: