summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarcel Hellkamp <marc@gsites.de>2012-08-29 16:30:11 -0700
committerMarcel Hellkamp <marc@gsites.de>2012-08-29 16:30:11 -0700
commit715c73e52bf0880d3b9c4117c72b93d859c31d66 (patch)
tree2af3e6451dcb5fcd34fc788fcc4543f26bfa6858
parenta2127fbbb75c83e8d369791a557677968a80201b (diff)
parente3f240ab6965366770227482e048990017ebcc8f (diff)
downloadbottle-715c73e52bf0880d3b9c4117c72b93d859c31d66.tar.gz
Merge pull request #369 from iurisilvio/patch-1
Plugin Development tutorial code error
-rwxr-xr-xdocs/plugindev.rst2
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.