diff options
| author | Antti Haapala <antti@haapala.name> | 2013-11-17 19:08:18 +0200 |
|---|---|---|
| committer | Antti Haapala <antti@haapala.name> | 2013-11-17 19:08:18 +0200 |
| commit | fab44e1e402efbf37fc58875974e9ae42827446e (patch) | |
| tree | bf13d3a849854048d998d9b0c139d7f7f4797495 /docs/narr | |
| parent | e697c98813a4acd332da5688867e799adfc9b835 (diff) | |
| download | pyramid-fab44e1e402efbf37fc58875974e9ae42827446e.tar.gz pyramid-fab44e1e402efbf37fc58875974e9ae42827446e.tar.bz2 pyramid-fab44e1e402efbf37fc58875974e9ae42827446e.zip | |
Should return the simple_tween here, not the handler.
Diffstat (limited to 'docs/narr')
| -rw-r--r-- | docs/narr/hooks.rst | 2 |
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: |
