diff options
author | Iuri de Silvio <iurisilvio@gmail.com> | 2012-08-24 12:16:11 -0300 |
---|---|---|
committer | Iuri de Silvio <iurisilvio@gmail.com> | 2012-08-24 12:16:11 -0300 |
commit | e3f240ab6965366770227482e048990017ebcc8f (patch) | |
tree | 2af3e6451dcb5fcd34fc788fcc4543f26bfa6858 | |
parent | a2127fbbb75c83e8d369791a557677968a80201b (diff) | |
download | bottle-e3f240ab6965366770227482e048990017ebcc8f.tar.gz |
Plugin Development tutorial code error
Just a small error reported in maillist.
-rwxr-xr-x | docs/plugindev.rst | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/docs/plugindev.rst b/docs/plugindev.rst index 1649149..40da98c 100755 --- a/docs/plugindev.rst +++ b/docs/plugindev.rst @@ -31,7 +31,7 @@ Of course, this is just a simplification. Plugins can do a lot more than just de return body return wrapper - bottle.install(stopwatch) + install(stopwatch) This plugin measures the execution time for each request and adds an appropriate ``X-Exec-Time`` header to the response. As you can see, the plugin returns a wrapper and the wrapper calls the original callback recursively. This is how decorators usually work. |